for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Providers;
use App\Helpers\User;
use Illuminate\Support\ServiceProvider;
/**
* Class AuthServiceProvider
* @package App\Providers
*/
class AuthServiceProvider extends ServiceProvider
{
* Boot the authentication services for the application.
* If an User is stored in the Session recover it
* Only will recover if the Path() isn't the Authentcation Path
*
* @return void
public function boot()
$this->app['auth']->viaRequest('api', function ($request) {
$request
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return User::getInstance()->getSession();
});
}
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.