I feel like I must be missing something very simple but I've lost track of everything I've tried over the past 3 days... I'm using medialibrary-pro for the temporary upload functionality on attachment to upload direct to S3.
First, my…
Description
Hi guys,
I have a API endpoint, and im validation incoming data with form requests,
It validated correctly but when i requesting file it says file doesn't exists.
Code
controller method
public function store(StoreRequest $request)
{
…
i am using Spatie media package in laravel, when i try to display media in Spatie collection is show defualt data from package .
Controller :
public function index(IndexTicketRequest $request)
{
$tickets =…
I'm saving images from local disk to cloud (DO storage) disk by following codes in controller
$claim->addMediaFromDisk($front_image, 'public')->usingFileName("front-image")->toMediaCollection('claim-images',…
I'm using Spatie media library and I can upload images to storage and database. And I'm trying to display a media collection in a Vue component. This is my Controller:
public function showHotelPhoto($id)
{
$hotel = Hotel::with('media');
…
I am trying to fing how we can integrate Livewire with spatie/laravel-medialibrary in Laravel. In this code I can get the image information when user submit the form, but I can't save an uploaded image with spatie/laravel-medialibrary:
class…
I am developing API in laravel. When I try to fetch an uploaded image url inside a loop that gives me this error,
Spatie\MediaLibrary\Exceptions\UrlCannotBeDetermined: Storage path myAppPath\storage\app is not part of public path myAppPath\public in…
I am working with spatie media library to store my images. On the frontend site I am using Quill editor with Vue js to give users the option to modify their posts. The users on the frontend also have the option to upload images. Those images get…
I am using Spatie media library to manage media in my laravel app. The issue is it generates oversized images even if the uploaded file is small which results in pixelated images.
I'm trying to save my uploaded file using Spatie's media libray (v9) and somehow I can't persist the image in my media table and my storage folder. When i dd() the request it finds the file and every information it needs, what am I missing ?
Here is…
I have a problem getting media from a joined table in laravel-medailibrary, I used getFirstMediaUrl("images") to get photos from one table and it works, but if I join two or three tables it not work, how can I solve it?
I want to get photos from…
In my Laravel 5.8 project I'm using Spatie Media Library plugin for my images. Now I want to use Intervention Image plugin to for some resizing and cropping.
So this is a part of my code:
if ($request->input('thumbnail', false)) {
…