| xqd
@@ -12,12 +12,13 @@
|
|
|
|
|
|
namespace App\Services\Base;
|
|
|
|
|
|
+use App\Http\Controllers\Admin\Controller;
|
|
|
use App\Models\BaseAttachmentModel;
|
|
|
use Grafika\Grafika;
|
|
|
use Response;
|
|
|
use App\Models\BaseSettingsModel;
|
|
|
use Image;
|
|
|
-class Attachment
|
|
|
+class Attachment extends Controller
|
|
|
{
|
|
|
private $_model;
|
|
|
|
| xqd
@@ -232,7 +233,7 @@ class Attachment
|
|
|
$attachment->path = $real_path;
|
|
|
$attachment->url = $url_path;
|
|
|
$attachment->size = $fileSize;
|
|
|
-
|
|
|
+ $attachment->store_id = $this->getStoreId();
|
|
|
$attachment->file_type = $fileMimeType;
|
|
|
$attachment->class = $class;
|
|
|
if ($attachment->save()) {
|