Closed Hesesses closed 10 years ago
Are you setting the user when auth.token.valid event is fired?
Event::listen('auth.token.valid', function($user)
{
//Token is valid, set the user on auth system.
Auth::setUser($user);
});
The various events are mentioned here: https://github.com/tappleby/laravel-auth-token/blob/master/README.md#events
Oh my bad! I thought those event listeners were already included in the code.
Hello,
Logins etc works perfectly but when I am using before filter with auth.token, laravel's Auth::user is empty, any ideas whats wrong?
Route::group(array('prefix' => 'v1','before' => 'auth.token'), function() { Route::post('events','EventtiController@store'); });