Larevel Command
Laravel Command
Cara membuat laravel :
- composer create-project laravel/laravel nama-project
- composer globall require laravel/installer -> laravel new nama-project
- tergantung versi = composer create-project laravel/laravel:^versi new nama-project
- php artisan serve
- php artisan ser
- php artisan make:migration (nama-migration) -> php artisan migrate
- --> php artisan migrate:fresh/refresh -> data dalam tabel menghilang
- buka file laravel -> app -> http -> controller -> create controller
- php artisan make:controller nama-controller
- controller + model = php artisan make:controller nama-controller -- resource --model:nama-model
- composer require laravel/ui -> php artisan ui bootstrap --auth -> npm install -> npm run dev -> php artisan serve
- lewat jetstream = composer require lalravel/jetstrem -> php argtisan jetstream:install livewire -> npm install -> npm run dev
Komentar
Posting Komentar