Register Service Provider


I would like to register SpacelessBladeProvider to use @spaceless tag:

Do you know if I can do this?


Hi @DreamOn,

I don’t know of a way to register a Laravel service provider with Sage, but I think you could manually port the spaceless and endspaceless directives to your app/setup.php :

The code is pretty straightforward :

Have fun :slight_smile:


In the event you’re using Sage 10, you can simply:

1 Like

This topic was automatically closed after 42 days. New replies are no longer allowed.