Recreate storage symlink if lost

This commit is contained in:
Chris
2018-02-12 14:47:12 +00:00
parent 7c30f0c236
commit a2aac1f33c

View File

@@ -26,7 +26,6 @@ class AppServiceProvider extends ServiceProvider
// first time setup // first time setup
touch(database_path('app.sqlite')); touch(database_path('app.sqlite'));
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true)); Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
Artisan::call('storage:link');
//Cache //Cache
//Artisan::call('config:cache'); //Artisan::call('config:cache');
//Artisan::call('route:cache'); //Artisan::call('route:cache');
@@ -50,6 +49,9 @@ class AppServiceProvider extends ServiceProvider
\App::setLocale($lang); \App::setLocale($lang);
} }
if(!is_file(public_path('storage'))) {
Artisan::call('storage:link');
}
view()->share('alt_bg', $alt_bg); view()->share('alt_bg', $alt_bg);
} }