You can use custom table in Laravel by overriding protected $table property of Eloquent. Below is sample uses
class User extends Eloquent{
protected $table="my_custom_table";
}
This post is submitted by one of our members. You may submit a new post here.
Laravel interview Questions © 2019 - Designed by PSD to HTML