Added middleware class headers
This commit is contained in:
@@ -15,6 +15,12 @@ use Closure;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
|
use Symfony\Component\HttpKernel\Exception\NotAcceptableHttpException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the acceptable middleware class.
|
||||||
|
*
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
*/
|
||||||
class Acceptable
|
class Acceptable
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the admin middleware class.
|
||||||
|
*
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
*/
|
||||||
class Admin
|
class Admin
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -18,6 +18,13 @@ use Illuminate\Database\Eloquent\ModelNotFoundException;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the api authentication middleware class.
|
||||||
|
*
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
*/
|
||||||
class ApiAuthentication
|
class ApiAuthentication
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Symfony\Component\HttpKernel\Exception\HttpException;
|
use Symfony\Component\HttpKernel\Exception\HttpException;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the authenticate middleware class.
|
||||||
|
*
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
*/
|
||||||
class Authenticate
|
class Authenticate
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ use Illuminate\Config\Repository;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Jenssegers\Date\Date;
|
use Jenssegers\Date\Date;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the localize middleware class.
|
||||||
|
*
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
*/
|
||||||
class Localize
|
class Localize
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -17,6 +17,13 @@ use Illuminate\Http\Request;
|
|||||||
use Illuminate\Support\Facades\Config;
|
use Illuminate\Support\Facades\Config;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the ready for use middleware class.
|
||||||
|
*
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
*/
|
||||||
class ReadyForUse
|
class ReadyForUse
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,6 +16,13 @@ use Illuminate\Contracts\Auth\Guard;
|
|||||||
use Illuminate\Http\RedirectResponse;
|
use Illuminate\Http\RedirectResponse;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the redirect if authenticated middleware class.
|
||||||
|
*
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
* @author Joseph Cohen <joe@alt-three.com>
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
*/
|
||||||
class RedirectIfAuthenticated
|
class RedirectIfAuthenticated
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ use Closure;
|
|||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use Illuminate\Support\Facades\Redirect;
|
use Illuminate\Support\Facades\Redirect;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the subscribers configured middleware class.
|
||||||
|
*
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
*/
|
||||||
class SubscribersConfigured
|
class SubscribersConfigured
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -15,6 +15,12 @@ use Closure;
|
|||||||
use Illuminate\Contracts\Config\Repository;
|
use Illuminate\Contracts\Config\Repository;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This is the timezone middleware class.
|
||||||
|
*
|
||||||
|
* @author James Brooks <james@alt-three.com>
|
||||||
|
* @author Graham Campbell <james@alt-three.com>
|
||||||
|
*/
|
||||||
class Timezone
|
class Timezone
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user