Open ghost opened 5 years ago
I has a controller but when i get a user does not work:
$user = Admin::user();
error: Class 'App\Admin\Controllers\Admin' not found why ?
use Encore\Admin\Facades\Admin;
$user = Admin::user()->name;
I has a controller but when i get a user does not work:
$user = Admin::user();
error: Class 'App\Admin\Controllers\Admin' not found why ?