File "CheckHasConfigMiddleware.php"
Full path: /home/orbitecv/orbite-school.orbit.et/vendor/joynala/web-installer/src/Middleware/CheckHasConfigMiddleware.php
File size: 358 B
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Edit Back
<?php
namespace Abedin\WebInstaller\Middleware;
use Closure;
class CheckHasConfigMiddleware
{
public function handle($request, Closure $next)
{
$hasConfigFile = is_file(base_path('config/installer.php'));
if($hasConfigFile){
return $next($request);
}
return to_route('installer.welcome.index');
}
}