for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Containers\Application\Providers;
use App\Containers\Application\Middlewares\ApplicationAuthentication;
use App\Port\Middleware\Providers\PortMiddlewareServiceProvider;
/**
* Class MiddlewareServiceProvider
*
* @author Mahmoud Zalt <[email protected]>
*/
class MiddlewareServiceProvider extends PortMiddlewareServiceProvider
{
protected $middleware = [
];
protected $middlewareGroups = [
'web' => [
],
'api' => [
protected $routeMiddleware = [
// Hello API App Authentication middleware for third party apps access on behalf of users
'app.auth' => ApplicationAuthentication::class,
* Perform post-registration booting of services.
public function boot()
$this->loadContainersInternalMiddlewares();
}
* Register anything in the container.
public function register()