Laravel Snippets

Incorrect Paths to assets - css and js
--------------------------------------
The issue is on localhost. I did not created custom virtual host.
However using {{asset('path')}} location seems to work everywhere.

Laravel 5.3 - Clear config cache in shared hosting
---------------------------------------------------
config:clear command just deletes bootstrap/cache/config.php file, 
so just delete this file manually.

Advertisements

Laravel Documentation

Installing Laravel

Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine.

after composer installation then install the laravel. command in your terminal:

php composer.phar create-project –prefer-dist laravel/laravel protfolio

blade.php

blade is a laravel default template engine. You can uses special syntax.

Create Controller and Routes

command in your terminal:
cd htdocs
cd portfolio
php artisan make:controller ControllerName

Create db table

cd htdocs
cd portfolio
php artisan make:migration create_galleries_table –create=galleries
php artisan migrate

helper and plugins installation

1.go laravelcollective.com then version select
2.You can see installation code
3.open composer.json file and add following code
“require”:{
“laravelcollective/html:”~5.2.0”
}
4.then you have to update the composer
5.so go to getcomposer.org/download/
after composer installation then update composer.phar file.
command in your terminal:
#php composer.phar update
6.Next you have to add provider and aliases just follow the laravelcollective
documentation