How to use custom table in Laravel Modal ?

devquora
devquora

Posted On: Feb 22, 2018

 

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_user_table";

} 

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Laravel Interview Questions

    What is Laravel?

    Laravel is a free open source "PHP framework" based on the MVC design pattern. It is created by Taylor Otwell...