listing files in backend

This commit is contained in:
Arno Kaimbacher 2018-10-11 16:49:08 +02:00
parent 4ac1c34b6a
commit ccff83fa66
9 changed files with 153 additions and 93 deletions

View file

@ -66,4 +66,9 @@ class File extends Model
{
return storage_path('app/public/' . $this->path_name);
}
public function exists()
{
return \Illuminate\Support\Facades\File::exists(public_path('storage/' . $this->path_name));
}
}