Skip to content

Commit

Permalink
old media trait include
Browse files Browse the repository at this point in the history
  • Loading branch information
veneliniliev committed Jan 18, 2017
1 parent 2d87c49 commit ed67900
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/Media.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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)));
}
}

0 comments on commit ed67900

Please sign in to comment.