public function __construct(\Orangehill\Photon\Field $field) { parent::__construct($field); $this->module = Module::find($field->module_id); $this->relativeFolderPath = Config::get('photon::photon.media_folder') . "/{$this->module->table_name}/" . $this->column_name; $this->storageFolderPath = public_path($this->relativeFolderPath); }
public function __construct(\Orangehill\Photon\Field $field) { parent::__construct($field); $this->module = Module::find($field->module_id); }