diff --git a/app/Media.php b/app/Media.php index eb2608f..423b1ea 100644 --- a/app/Media.php +++ b/app/Media.php @@ -7,9 +7,11 @@ namespace ProVision\Administration; +use ProVision\Administration\Traits\MediaTrait; + class Media extends AdminModel { - use \Rutorika\Sortable\SortableTrait; + use \Rutorika\Sortable\SortableTrait,MediaTrait; protected static $sortableGroupField = [ 'module', @@ -112,6 +114,6 @@ public function getPathAttribute() */ public function quickResize() { - parent::resize(realpath(public_path($this->path.'/'.$this->file))); + $this->resize(realpath(public_path($this->path.'/'.$this->file))); } }