alreadyInstalled()) { abort(404); } return $next($request); } /** * If application is already installed. * * @return bool */ public function alreadyInstalled() { return file_exists(storage_path('installed')); } }