PHPackages                             tozogluburak/laravel-cdn-helper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tozogluburak/laravel-cdn-helper

ActiveLibrary

tozogluburak/laravel-cdn-helper
===============================

A Laravel package for CDN integration

v1.8.0(1y ago)014MITPHPPHP &gt;=7.3

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/tozogluburak/laravel-cdn-helper)[ Packagist](https://packagist.org/packages/tozogluburak/laravel-cdn-helper)[ RSS](/packages/tozogluburak-laravel-cdn-helper/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (10)Used By (0)

Laravel Cdn Helper
==================

[](#laravel-cdn-helper)

This package provides a simple way to integrate CDN support into your Laravel application.

Installation
------------

[](#installation)

1. Add the package to your project via Composer:

    ```
    composer require tozogluburak/laravel-cdn-helper:^1.8
    ```
2. Publish the package's configuration file:

    ```
    php artisan vendor:publish --provider="tozogluburak\CdnHelper\Discovery\CdnHelperDiscovery"
    ```
3. After installation, the package will automatically add the CDN helper function to your project.

Configuration
-------------

[](#configuration)

The standard `asset()` function will be called if no CDN URLs are defined in the `./config/app.php` config file.

### Define the CDN URLs in the `./config/app.php` file:

[](#define-the-cdn-urls-in-the-configappphp-file)

Add the following configuration to your `app.php` file:

```
