Compare commits

...

3 Commits

Author SHA1 Message Date
Mekan1206
f011da72d9 WIP 2026-02-18 04:01:28 +05:00
Mekan1206
4a0e24683a WIP 2026-02-15 00:31:16 +05:00
Mekan1206
49ef491e80 WIP 2026-02-14 23:09:52 +05:00
3 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,8 @@ APP_URL=http://localhost
API_TOKEN=123 API_TOKEN=123
NOVA_LICENSE_KEY=UEkhFwqhhYw2UPqcoVNWWhKrZOOWXujgj7pLPdDzMqflYX4Pwl NOVA_LICENSE_KEY=UEkhFwqhhYw2UPqcoVNWWhKrZOOWXujgj7pLPdDzMqflYX4Pwl
DEBUGBAR_ENABLED=false
LOG_CHANNEL=stack LOG_CHANNEL=stack
LOG_DEPRECATIONS_CHANNEL=null LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug LOG_LEVEL=debug

View File

@@ -5,7 +5,7 @@
# Install posgres and configure # Install posgres and configure
sudo su - postgres sudo su - postgres
psql psql
CREATE USER postshop WITH PASSWORD 'ACvL2(F@H^F)D7gs'; CREATE USER postshop WITH PASSWORD 'HRbuBNRBaTPeUfbcFf9XHWay';
CREATE DATABASE postshopdb WITH OWNER = postshop LC_COLLATE = 'en_US.UTF-8' TEMPLATE template0; CREATE DATABASE postshopdb WITH OWNER = postshop LC_COLLATE = 'en_US.UTF-8' TEMPLATE template0;
# Clone # Clone

View File

@@ -4,6 +4,7 @@ namespace App\Models\Ecommerce\Product\Product\Concerns;
use Spatie\Image\Manipulations; use Spatie\Image\Manipulations;
use Spatie\MediaLibrary\MediaCollections\Models\Media; use Spatie\MediaLibrary\MediaCollections\Models\Media;
use Illuminate\Support\Str;
trait ProductMedia trait ProductMedia
{ {
@@ -13,7 +14,8 @@ trait ProductMedia
public function registerMediaCollections(): void public function registerMediaCollections(): void
{ {
$this->addMediaCollection('uploads') $this->addMediaCollection('uploads')
->useFallbackUrl(url('/assets/web/images/05.jpg')); ->useFallbackUrl(url('/assets/web/images/05.jpg'))
->usingFileName(Str::random(12) . '.' . $this->getClientOriginalExtension());
} }
/** /**