Add check to see that we're installed, and remove the .env that's created

This commit is contained in:
Nabeel Shahzad
2017-12-16 12:01:21 -06:00
parent 2dd259802d
commit 5bc8dab6f8
6 changed files with 27 additions and 16 deletions

View File

@@ -0,0 +1,24 @@
<?php
/**
* Handle the authentication for the API layer
*/
namespace App\Http\Middleware;
use Closure;
class InstalledCheck
{
/**
* Check the app.key to see whether we're installed or not
*
*/
public function handle($request, Closure $next)
{
if (config('app.key') === 'NOT_INSTALLED') {
return view('system.errors.not_installed');
}
return $next($request);
}
}