check for gitignore in public storage and symlink if missing

This commit is contained in:
KodeStar 2019-01-15 15:25:53 +00:00 committed by GitHub
parent cbef469e02
commit caf92bcf6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,7 +48,7 @@ class AppServiceProvider extends ServiceProvider
}
if(!is_file(public_path('storage'))) {
if(!is_file(public_path('storage/.gitignore'))) {
Artisan::call('storage:link');
\Session::put('current_user', null);
}