npm install
npm run dev
npm run dev
composer install
cp .env.example .env
php artisan key:generate
composer create-project --prefer-dist laravel/laravel shop "8.*"
php artisan serve
# this is for adding helpers.php
composer dump-autoload
composer require laravel/ui:*
php artisan ui bootstrap --auth
php artisan migrate
npm install
npm run dev
npm run dev
php artisan make:component ComponentName
php artisan make:model ControllerName -mcr
# without the 'Controller' name convention. just the name of the controller.
Where:
-
-m, --migration Create a new migration file for the model.
-
-c, --controller Create a new controller for the model.
-
-r, --resource Indicates if the generated controller should be a resource controller
php artisan migrate:fresh
php artisan make:seeder ProductSeeder
php artisan make:seeder UserSeeder
php artisan db:seed