> ## Documentation Index
> Fetch the complete documentation index at: https://cloudinary.com/documentation/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure the Laravel SDK (video tutorial)


## Overview

Learn how to install and configure the [community-developed Cloudinary Laravel SDK](https://github.com/cloudinary-community/cloudinary-laravel/) in your Laravel application. This tutorial walks through the complete setup process, from installing the SDK via Composer to configuring your environment variables and displaying optimized media using Cloudinary's powerful features.

Whether you're building a product catalog, media library, or any application that handles images and videos, this tutorial shows you how to quickly integrate Cloudinary into your Laravel workflow with just a few commands.

> **NOTE**: The Laravel SDK is a community-developed library. For more details, see the [community-developed libraries](community_sdks#laravel_package) page.

## Video tutorial

  This video is brought to you by Cloudinary's video player - embed your own!Use the controls to set the playback speed, navigate to chapters of interest and select subtitles in your preferred language.

## Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.### Introduction to Cloudinary features
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=0 :sec=00 :player=cld} | Discover how Cloudinary makes it easy to boost performance by optimizing your videos and images, provides tools to manage your dynamic content library, and gives you the ability to use AI for features like generative fill for images. |

### Installing the Cloudinary Laravel SDK
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=03 :player=cld} | Install the Cloudinary Laravel SDK using Composer with the command `composer require cloudinary-labs/cloudinary-laravel`. This SDK provides an expressive API to easily work with Cloudinary and your media files in Laravel applications. For more information, see the [Cloudinary Laravel SDK on GitHub](https://github.com/cloudinary-community/cloudinary-laravel/). |

### Configuring the environment variable
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=18 :player=cld} | For Laravel 5.5 and higher, add the `CLOUDINARY_URL` environment variable to your `.env` file. You can find this URL on the [API Keys](https://console.cloudinary.com/settings/api-keys) page in Console Settings. Copy the full URL, paste it into your `.env` file, then replace the placeholders with your actual API key and secret to connect your application to your Cloudinary account. |

### Displaying images from Cloudinary
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=1 :sec=48 :player=cld} | Use the `cld-image` Blade component provided by the Laravel SDK to display images from your Cloudinary media library. Replace the standard `<img>` tag with `<x-cld-image>` and use the `public-id` attribute instead of `src`. This gives you access to all Cloudinary's optimization and transformation features right within your Laravel views. |

### Applying image transformations
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=2 :sec=31 :player=cld} | Apply transformations to your images using Cloudinary's effect attributes directly in the Blade component. For example, add `effect="grayscale"` or `effect="cartoonify"` to instantly transform your images. The Laravel SDK makes it easy to use any Cloudinary transformation without writing complex URLs. Learn more about available effects in the [image transformation documentation](image_transformations). |

### Embedding videos with Cloudinary video player
{table:class=tutorial-bullets}|  | 
| --- | --- |
|{videotime:id=media :min=2 :sec=54 :player=cld} | Embed and play videos using the Cloudinary video player, which provides optimized streaming and a rich viewing experience. The video player can be easily integrated into your Laravel application for smooth video playback. For more information, see the [Cloudinary video player documentation](video_player_api_reference). |

## Keep learning

> **READING**:
>
> * Learn more about the [community-developed Laravel SDK](https://github.com/cloudinary-community/cloudinary-laravel/) and its features.

> * Explore our [community-developed libraries](community_sdks) for other frameworks.

> * Learn how to [upload assets](dam_upload_store_assets) programmatically in your Laravel application.

> * Watch more [Dev Hints videos](https://www.youtube.com/playlist?list=PL8dVGjLA2oMpaTbvoKCaRNBMQzBUIv7N8) on the [Cloudinary YouTube channel](https://www.youtube.com/cloudinary).

#### If you like this, you might also like...

  
  
  
    Upload Images in Laravel
    Upload images in Laravel with Cloudinary 
  

  
  
  
    Configure the PHP SDK
    Install and configure the Cloudinary PHP SDK 
  

  
  
  
    Optimize Images in Laravel
    Optimize images in Laravel with Cloudinary 
  

&nbsp;

&nbsp;Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
&nbsp;