Showing posts with label Laravel Installation. Show all posts
Showing posts with label Laravel Installation. Show all posts

Thursday, October 26, 2017

Install Laravel

1st : we have to chick composer is available on my PC  yes or not.

How to install a composer: 
1st composer is a Dependency Manager for PHP.
go to getcomposer.org > click on download > download Composer-Setup.exe  file. 

Installation process: 
Run this exe file and select a proper path
path will be php.exe file what you can find it on your homeserver php folder> php.exe.
no another configuration is required. only next next next.

How to check Composer is available on your PC or not:
open terminal and write composer 
You can see composer configuration all documents then you can sure that composer is running on your pc. 

Install laravel:
go to htdocs and open terminal and write composer create-project laravel/laravel your-project-name
(please don't create a folder on htdocs) you have install laravel only htdocs folder 
check this one and go to your project name folder you can see public folder run on your browser through localhost you can see laravel page 


That's it.

Thank You.

Sunday, October 1, 2017

Laravel Project One

Requirements:
Php version up to 7.
Now we are using xampp home server. I will prefer Editor: PhpStorm for only Php. If you want where you want to want this software, for that you can knock me on this post comment i will give a link.
Installation: 
cmd:| composer create-project laravel/laravel project-one 

All framework will work as a MVC pattern: (Model, View, Controller).


Folder: 

1) app: 

1) all configuration file
2) Control class file, Model Class file
Controller class:::


All controller class will be available on this file. It's call controller class.
Controller will be work with view.


Model class:::

This is model class. Model will be work with database.



 2) Bootstrap:

For design



3) Config
all configuration file will be here. We will use app.php






4) database:

when we will create table on database then for every table we will create individual migration file.
see one migration file:
 



 5) public:
index.php main file for enter framework. all css, js and images will be here



6) resource:
all view file will be here



7) storage:
how Line by line debug  is happening all information is here.



8) tests:
project unit test purpose 



9)vendor:
all library file from collected different framework 



10) .env
all configuration add on this file like mail creation, database etc. 



11) composer.json:
 project description . Composer can find our project by this file. 



12) phpunit.xml:
project will be auto load by this file. No need required file

===============================================
.blade.php this file is comes from symphony . for .blade file will be more secured 

this file control the rote by function
 


and those are views file