Commit 69b3e023 authored by Nicolas Widart's avatar Nicolas Widart

setting base path

parent 2585b348
......@@ -28,7 +28,7 @@ class EloquentFileRepository extends EloquentBaseRepository implements FileRepos
return $this->model->create([
'filename' => $fileName,
'path' => public_path() . "/assets/media/{$fileName}",
'path' => "/assets/media/{$fileName}",
'extension' => $file->guessClientExtension(),
'mimetype' => $file->getClientMimeType(),
'filesize' => $file->getFileInfo()->getSize(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment