Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 812 Bytes

cheatsheet.md

File metadata and controls

41 lines (35 loc) · 812 Bytes

Setup laravel

php artisan migrate
php artisan db:seed

atau

php artisan migrate:fresh --seed
php artisan storage:link
php artisan key:generate

Set laravel permission

sudo chown -R barokah:www-data .
sudo find . -type f -exec chmod 644 {} \;  
sudo find . -type d -exec chmod 775 {} \;
sudo chmod -R ug+rwx storage bootstrap/cache
sudo chgrp -R www-data storage bootstrap/cache

Ref : https://stackoverflow.com/questions/30639174/how-to-set-up-file-permissions-for-laravel

Playing with laravel

make controller

php artisan make:controller IndexController

make model + migration

php artisan make:model Test -m

make controller resource + model

php artisan make:controller ProductController --resource --model=Product