Last active
January 22, 2021 13:58
-
-
Save freddan88/8874ef53251eecc800cae259ccde98a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://getcomposer.org/installer | |
chmod +x installer && php ./installer | |
mv composer.phar /usr/local/bin/composer | |
echo 'export PATH="~/.config/composer/vendor/bin:$PATH"' >> .bashrc | |
rm -f installer | |
--- Windows Powershell [Administrator] | |
choco install php composer nvm sqlite mysql | |
--- | |
composer global require laravel/installer | |
> laravel new project_name | |
> laravel new project_name --auth | |
php composer.phar create-project --prefer-dist laravel/laravel news | |
php artisan make:model Cart -m // Generate Model, migration | |
php artisan make:model Project -mc // Generate Model, migration and controller | |
php artisan make:model Tweet -fmc // Generate Factory, Model, migration and controller | |
php artisan make:model Cart -mcr // Generate Model, migration, controller with resource | |
php artisan make:controller ProfilesController // Generate a controller | |
php artisan make:controller ProjectsController -r -m Project // Generate model and prefilled controller | |
php artisan make:controller ProjectsController --resource // Generate prefilled controller | |
php artisan make:policy ConversationPolicy --model=Conversation | |
php artisan make:migration create_roles_tables --table=roles | |
php artisan make:factory ArticleFactory -m "App\Article" | |
php artisan make:migration create_follows_table | |
php artisan make:auth | |
php artisan tinker | |
> factory('App\Tweet', 4)->create(); | |
php artisan migrate | |
php artisan migrate:fresh | |
php artisan migrate:rollback | |
php artisan route:list | |
composer require laravel/ui --dev | |
php artisan ui | |
php artisan ui vue --auth | |
php artisan help ui | |
Route::resource('Photos', 'PhotoController'); | |
php artisan make:controller PhotoControler --resource --model=Photo | |
php artisan make:model Dog --migration --controller --api |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment