Answers for "laravel model set which table"

PHP
4

laravel model tablename

protected $table = 'DomainRelatedSettings';
Posted by: Guest on January-07-2021
0

laravel table in model

public $table = "dpl_user";

protected $fillable = [ 'user_id', 'fname', 'lname', 'email', 'phone', 'msg'];
Posted by: Guest on August-08-2021

Browse Popular Code Answers by Language