Larevel Command

 

 Laravel Command

Cara membuat laravel :

  1. composer create-project laravel/laravel nama-project
  2. composer globall require laravel/installer -> laravel new nama-project 
  3. tergantung versi = composer create-project laravel/laravel:^versi new nama-project
Cara menjalankan laravel :

  1. php artisan serve
  2. php artisan ser
Cara membuat migration di laravel :

  1. php artisan make:migration (nama-migration) -> php artisan migrate
  2. --> php artisan migrate:fresh/refresh -> data dalam tabel menghilang
Cara membuat controller :

  1. buka file laravel -> app -> http -> controller -> create controller
  2. php artisan make:controller nama-controller
  3. controller + model = php artisan make:controller nama-controller -- resource --model:nama-model
Cara membuat login :

  1. composer require laravel/ui -> php artisan ui bootstrap --auth -> npm install -> npm run dev -> php artisan serve
  2. lewat jetstream = composer require lalravel/jetstrem -> php argtisan jetstream:install livewire -> npm install -> npm run dev

Komentar

Postingan populer dari blog ini

Apa Itu Node.js??

Tata Cara Laporan Korban Kejahatan siber ( Cyber Crime)

Use Case adalah