I am running Laravel 5.1 and am encountering the following error.
[2018-08-31 12:38:33] prod.ERROR: Debugbar exception: call_user_func_array() expects parameter 1 to be a valid callback, class 'Kbwebs\MultiAuth\Guard' does not have a method 'getAuthIdentifier'
I am trying to display a user account with the following controller:
/**
* @return \Illuminate\Contracts\View\Factory|\Illuminate\View\View
*/
public function index()
{
/** @var User $user */
$user = Auth::user()->get();
$transactions = $user->transactions()
->with('orders')
->where('type', '=', 'mealservice')
->whereIn('status', [Transaction::TRANSACTION_STATUS_DONE])
->orderBy('created_at', 'DESC')
->get();
if ($transactions) {
$moments = Moment::get();
$meals = Meal::get();
} else {
$moments = collect();
$meals = collect();
}
return view('website.pages.account.index')
->with(['transactions' => $transactions, 'user' => $user, 'userData' => $user->data]);
}
I am able to get the user->data just fine. But once the view is triggered im encountering the above error. Does anyone have an idea?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire