argument('schema.sql'); if (!file_exists($schema)) throw new NotFoundHttpException('File '.$schema.' does not exist.'); DB::unprepared(file_get_contents($schema)); $this->line('Successfully imported'); } }