Answers for "how to use model variable in div tag in laravel"

PHP
1

use model from variable laravel

$model_name = 'App\Model\User';
$model_name::where('id', $id)->first();

$model = $this->model_name;
$model::where('id', $id)->first();
Posted by: Guest on January-04-2021

Code answers related to "how to use model variable in div tag in laravel"

Browse Popular Code Answers by Language