Ignore:
Timestamp:
11/23/21 22:01:52 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
master
Children:
dbc5976
Parents:
4d73966
Message:

bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Models/File.php

    r4d73966 r0a1fb54  
    1212
    1313    protected $table = "files";
    14     protected $fillable = ["name", "location", "document_id"];
     14    protected $fillable = ["name", "location", "folder_id"];
    1515
    1616    public function folder()
     
    2121    public function getSize($location)
    2222    {
    23         $fileSize = Storage::disk('uploads')->size($location) / 1024 / 1024;
     23        $fileSize = Storage::disk('local')->size($location) / 1024 / 1024;
    2424        $fileSize = round($fileSize, 2);
    2525        return $fileSize;
Note: See TracChangeset for help on using the changeset viewer.