Answers for "select field from table using model laravel"

PHP
2

get table name of model laravel inside the model

//$this refer to model that you are in that
$this->getTable();
Posted by: Guest on February-22-2022
2

laravel select columns

Table::select('name','surname')->where('id', 1)->get();
Posted by: Guest on June-30-2020

Code answers related to "select field from table using model laravel"

Browse Popular Code Answers by Language