Initial Commit
This commit is contained in:
25
app/Http/Middleware/CheckTeamStorePassword.php
Normal file
25
app/Http/Middleware/CheckTeamStorePassword.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
|
||||
class CheckTeamStorePassword {
|
||||
|
||||
/**
|
||||
* Handle an incoming request.
|
||||
*
|
||||
* @param \Illuminate\Http\Request $request
|
||||
* @param \Closure $next
|
||||
* @return mixed
|
||||
*/
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (!$request->session()->has('teamstore_data_array')) {
|
||||
// user value cannot be found in session
|
||||
|
||||
// return redirect('/teamstore');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user