Thursday, March 9, 2017

Create model in laravel with relations

How to create Models from database with relations in Laravel 5.x ?

I am using this command to create models but it is showing any relationship which is in database schema:

Artisan::call('make:model', array("name"=>'Modules/Admin/Models/Campaign'));



via subhajit

Advertisement