storage url o'zgartirildi
This commit is contained in:
@@ -4,6 +4,7 @@ namespace App\Jobs\Dashboard\Product;
|
||||
|
||||
use App\Models\Product;
|
||||
use App\Models\Screen;
|
||||
use App\Support\Uploads;
|
||||
use Carbon\Carbon;
|
||||
use App\Api\ImageResize;
|
||||
use App\Http\Requests\Dashboard\Product\Store as StoreRequest;
|
||||
@@ -54,10 +55,10 @@ class Child
|
||||
$folder = Carbon::now()->format('Y/m/d');
|
||||
|
||||
// Store original
|
||||
$path = $screen['image']->store("uploads/screens/{$folder}");
|
||||
$path = Uploads::store($screen['image'], "uploads/screens/{$folder}");
|
||||
|
||||
// Store and resize thumb
|
||||
$tempPath = $screen['image']->store('temp', 'public');
|
||||
$tempPath = Uploads::store($screen['image'], 'temp', 'public');
|
||||
$thumbPath = $this->image->resize($tempPath, 322, 'screens', true);
|
||||
|
||||
$this->size = Storage::size($path);
|
||||
|
||||
Reference in New Issue
Block a user