function __construct() { $this->clientId = \LucaDegasperi\OAuth2Server\Facades\Authorizer::getClientId(); $template = \App\Models\ClientTemplate::clientid($this->clientId)->first(); if (!$template) { \App::abort(404); } $this->template = $template['located']; }