Пример #1
0
 /**
  * Upload files and save to the table.
  *
  * @param Eloquent $model
  *
  * @return null
  */
 public function upload($model)
 {
     if (empty($model->uploads)) {
         return;
     }
     if (isset($model->uploads['single'])) {
         $model->uploadSingle();
     }
     if (isset($model->uploads['multiple'])) {
         $model->uploadMultiple();
     }
 }