In App\Handler.php there is function render(). How to declare model class (located: App/User.php) inside this function render() ? I try this way:
public function render($request, Exception $e)
{
$gg = new User;
$test = $gg->GetName(123);
return view('blad', ['post' => $test]);
}
but when I declare new User; I have a 500 error. Any suggest?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1VVcDb9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire