Skip to content

Guides / Upload Images & Videos

Laravel Cloudinary provides a seamless way to integrate Cloudinary’s powerful upload capabilities into your Laravel project. This guide will show you how to use the <x-cloudinary::widget> component to add upload functionality to your application.

The <x-cloudinary::widget> component is a wrapper around Cloudinary’s Upload Widget, specifically optimized for Laravel projects. It allows you to easily add upload functionality with minimal configuration.

Here’s a simple example of how to use the widget in your Blade templates:

<x-cloudinary::widget>Upload to Cloudinary</x-cloudinary::widget>

Todo

  1. Always use upload presets to control what can be uploaded to your Cloudinary account.
  2. Implement signed uploads for enhanced security, especially in production environments.
  3. Customize the upload widget to match your application’s design and user experience.
  4. Consider implementing upload restrictions (file types, sizes) using Cloudinarys upload presets.