Changeset 0a1fb54 for app/Models/File.php
- Timestamp:
- 11/23/21 22:01:52 (3 years ago)
- Branches:
- master
- Children:
- dbc5976
- Parents:
- 4d73966
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
app/Models/File.php
r4d73966 r0a1fb54 12 12 13 13 protected $table = "files"; 14 protected $fillable = ["name", "location", " document_id"];14 protected $fillable = ["name", "location", "folder_id"]; 15 15 16 16 public function folder() … … 21 21 public function getSize($location) 22 22 { 23 $fileSize = Storage::disk(' uploads')->size($location) / 1024 / 1024;23 $fileSize = Storage::disk('local')->size($location) / 1024 / 1024; 24 24 $fileSize = round($fileSize, 2); 25 25 return $fileSize;
Note:
See TracChangeset
for help on using the changeset viewer.