The spark registration page shows up fine. I fill out the form, submit, and there is a new entry in the database.
Calling the function to get the current user :
$router->get('/user/current', 'Laravel\Spark\Http\Controllers\UserController@current');
With the controller ...
/**
* Get the current user of the appliation.
*
* @return Response
*/
public function current()
{
return response()->json(Auth::check());
}
This Auth::check()
returns false. And Auth::user()
in this place returns nothing.
Logging in via the spark login page as that user has the same results.
However, going back to the login or registration pages reroutes me as if I am logged in. I can also poke around the spark settings pages and add new teams, etc.
Why does spark think I am logged in and why doesn't it actually log me in?