How to get table name from model in Laravel 5?
If we want to get a table in Laravel application from a particular Model then we can use getTable()
method.
BY Best Interview Question ON 11 Apr 2020
Example
$user = new BestInterviewQuestions;
$tableName = $user->getTable();
print_r($tableName);