Ignore:
Timestamp:
10/21/21 23:45:59 (3 years ago)
Author:
beratkjufliju <kufliju@…>
Branches:
develop, master
Children:
4b7e2d3
Parents:
6b95845
Message:

added fileTypes controller, notifications, excel export, edited views

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Models/File.php

    r6b95845 rc6b84df  
    1111    protected $fillable = ["name", "location", "document_id"];
    1212
    13     public function document()
     13    public function folder()
    1414    {
    15         return $this->belongsTo(Document::class);
     15        return $this->belongsTo(Folder::class);
    1616    }
    1717
    1818    public function getSize($location)
    1919    {
    20         $fileSize = Storage::disk('local')->size($location) / 1024 / 1024;
     20        $fileSize = Storage::disk('uploads')->size($location) / 1024 / 1024;
    2121        $fileSize = round($fileSize, 2);
    2222        return $fileSize;
Note: See TracChangeset for help on using the changeset viewer.