How to create custom table in Laravel Modal ?

QuestionsCategory: LaravelHow to create custom table in Laravel Modal ?
VR Soft Coder Staff asked 12 months ago

1 Answers
VR Soft Coder Staff answered 12 months ago

You can use custom table in Laravel by overriding protected $table property of Eloquent.

You can create custom table in Laravel by overriding protected $table of Eloquent Model. See example below:-

class Books extends Eloquent{
 protected $table="my_books_table";

}

Your Answer

Related Posts

Begin typing your search above and press enter to search. Press ESC to cancel.

Back To Top