public function router()
{
if ( ! \Auth::check())
{
$this->response(array('status'=> 0, 'error'=> 'Not Authorized'), 401);
}
else
{
return parent::router();
}
}
public function myauth()
{
return \Auth::check();
}
It looks like you're new here. If you want to get involved, click one of these buttons!