for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the site package.
*
* (c) Mohamed Alsharaf <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Tinyissue\Http\Middleware;
use Tinyissue\Extensions\Auth\LoggedUser;
use Tinyissue\Model\User;
use Illuminate\Contracts\Auth\Guard;
use Illuminate\Contracts\Foundation\Application;
/**
* @author Mohamed Alsharaf <[email protected]>
abstract class MiddlewareAbstract
{
use LoggedUser;
* The Guard implementation.
* @var Guard
protected $auth;
* The application implementation.
* @var \Illuminate\Contracts\Foundation\Application
protected $app;
* Create a new filter instance.
* @param Guard $auth
* @param \Illuminate\Contracts\Foundation\Application $app
public function __construct(Guard $auth, Application $app)
$this->auth = $auth;
$this->app = $app;
}