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).
14 lines
243 B
PHP
14 lines
243 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Illuminate\Support\Facades\Auth;
|
|
|
|
class RedirectIfAuthenticated
|
|
{
|
|
public function handle($request, \Closure $next)
|
|
{
|
|
return Auth::check() ? redirect('user') : $next($request);
|
|
}
|
|
}
|