I want use spatie to get Google+ avatar, but when I try get it there is an error.
$user = Socialite::driver('google')->user();
$usertest=User::whereEmail($user->getemail())->first();
if(! $usertest){
$usertest=User::create([
…
i'm having trouble setting up Laravel with the Spatie Media Library package.
Here is the error i'm getting:
SQLSTATE[HY000]: General error: 1364 Field 'model_type' doesn't have a default value (SQL: insert into `images` (`updated_at`, `created_at`)…
I am using this media library for Laravel.
Lets say I have a Pivot class in Laravel 5.5 which is the intermediate table that joins two other tables in a many to many relation.
I have implemented the class like this:
class UserTask extends Pivot…
In laravel 8 app using spatie/laravel-medialibrary 9 for storing of images and videos in adminarea I also use youtube keys
(only key, not url) which can be attached for some item. If there is a way to store youtube key im media table of…
i am using laravel 8 framework but can't seem to update my profile image. It always goes to fallback image when i am trying to update the image.
enter image description here
And here is my code
profile.blade.php
I'm uploading multiple images for a property and everything works well. The images and their conversions are uploaded successfully. However, a conversion is created for every image of a given property but I'd like to create a conversion only for the…
Iam using Laravel spatie media library backage in my project:
https://spatie.be/docs/laravel-medialibrary/v10/introduction
The media library shows null when trying to retrieve an image from a model using the…
Im currently using the Spatie\MediaLibrary for my reviews model.
I got a query getting all reviews but im trying to show reviews that has images first using orderBy.
app\Models\Product.php Not working
public function reviews():…
I have a problem with the spatie media library where my image won't display after I pull it from a source tree. I don't know what the problem is. Is it a problem with spatie, or is it a problem with a source tree?
Can someone help me with this?
I'm seeding responsive images as shown below and it working fine. How can I save the images in webp format regardless of the uploaded format?
My run method
public function run()
{
$seed_imgs_folder = 'http://127.0.0.1:8000/seed_imgs/';
…
Using custom properties with media library pro collection in Livewire, only changed values save. Existing, unchanged custom property values are deleted.
If I change both properties, they save.
If I change neither
property, they remain saved.
If I…
When an image is uploaded to my website it is stored using Laravel Media Library from Spatie. I have a conversion registered on the model and this works well to automatically create a cropped version of the uploaded image whilst also keeping the…
A bit of context, I'm working with Laravel Filament. I installed a plugin called Spatie Media Library, all good. Then, I created a DO Spaces bucket, add the CORS config, then in Laravel, I installed the required packages, added the disk with the…
Hi i'm trying to add spatie\laravel-medialibrary to my package to store media
but it's not work
the migration of "spatie\laravel-medialibrary" not published
how can i publishe all config and migration for "spatie\laravel-medialibrary" from my…