migrate to gtea from bistbucket
This commit is contained in:
17
public/restaurant/app/Http/Middleware/CheckInstallation.php
Normal file
17
public/restaurant/app/Http/Middleware/CheckInstallation.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Middleware;
|
||||
|
||||
use Closure;
|
||||
|
||||
class CheckInstallation
|
||||
{
|
||||
public function handle($request, Closure $next)
|
||||
{
|
||||
if (! file_exists(storage_path('mightyRestaurant'))) {
|
||||
return redirect('/install');
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user