Answers for "what is an eloquent model"

PHP
2

get all data eloquent laravel

Blog::all();

//example usage.
$posts = Blog::all();
Posted by: Guest on October-28-2020
-1

crrate model in laravel

php artisan make:model Flight -mcr
  #it will make model with name of Flight
  #it will also create conctroller file with FlightController name 
  #all function will present in this Controller (index, create, store, show, edit, update, destroy)
Posted by: Guest on January-10-2021

Browse Popular Code Answers by Language