Skip to content

Instantly share code, notes, and snippets.

@Tmeister
Last active November 5, 2021 18:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Tmeister/aeda4f09c9a9e3be2975d1557a9db198 to your computer and use it in GitHub Desktop.
Save Tmeister/aeda4f09c9a9e3be2975d1557a9db198 to your computer and use it in GitHub Desktop.
Adding the blade-heroicons package to Sage 10

This text explains how to add a laravel package on a Sage 10 theme, in this example I'm going to use the the https://github.com/blade-ui-kit/blade-heroicons package to add customs components to render the Heroicon's SVGs

Installing the package

Just follow the instructions on https://github.com/blade-ui-kit/blade-heroicons#installation

Adding the ServiceProvider

On the /config/app.php add the package's service provider like we use to do on an old Laravel version

// Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,

/*
 * Package Service Providers...
 */

BladeUI\Heroicons\BladeHeroiconsServiceProvider::class,

/*
 * Application Service Providers...
 */

App\Providers\ThemeServiceProvider::class,

The class path can be found on the package's composer file, in this case here

Finally, in our same config/app.php we need to activate the global helper functions to replicate a Laravel install

and that's it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment