3cf19d8656
This pull request applies code style fixes from an analysis carried out by [StyleCI](https://github.styleci.io). --- For more information, click [here](https://github.styleci.io/analyses/8wKwbZ).
34 lines
593 B
PHP
34 lines
593 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class AfterSessionBooted
|
|
{
|
|
/**
|
|
* Jobs should be done after session booted.
|
|
*
|
|
* @var array
|
|
*/
|
|
public static $jobs;
|
|
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next)
|
|
{
|
|
foreach (static::$jobs as $job) {
|
|
if (is_callable($job)) {
|
|
app()->call($job);
|
|
}
|
|
}
|
|
|
|
return $next($request);
|
|
}
|
|
}
|