Exemplo n.º 1
0
 public function __call($method, $parameters)
 {
     $array = config('uploader.dimensions');
     if (array_has($array, $method)) {
         if (count($parameters) > 0) {
             return $this->dimensions($method)->get($parameters[0]);
         } else {
             return $this->dimensions($method);
         }
     }
     parent::__call($method, $parameters);
 }
Exemplo n.º 2
0
 public function __construct($path, Filesystem $filesystem = null)
 {
     $this->path = (string) $path;
     $this->filesystem = $filesystem ?: new Filesystem();
     $this->attributes = Collection::make($this->getAttributes());
 }