skip to Main Content

Laravel polymorphic relationship not working in Laravel Nova

I have the following Models and relationships. AppSubscriber.php <?php namespace AppModels; use IlluminateDatabaseEloquentModel; use IlluminateSupportFacadesDB; use IlluminateSupportStr; use IlluminateFoundationAuthUser as Authenticatable; use IlluminateNotificationsNotifiable; use GrosvLaravelPasswordlessLoginTraitsPasswordlessLogin; class Subscriber extends Authenticatable { use Notifiable, PasswordlessLogin; public function customFieldValues() { return $this->morphMany(CustomFieldValue::class, 'customFieldValueable');…

VIEW QUESTION

Seed fake images in laravel

I'm trying to generate a fake image to populate seeder data. I created a seeder with this: $this->faker->image(storage_path('app/public/products'), 500, 500) When I try to access them through Laravel Nova to see them, I get this kind of URL: http://localhost/storage/var/www/html/storage/app/public/products/c8831002794cc55fe046c5e2b65794d4.png In…

VIEW QUESTION
Back To Top
Search