Available since:brezel-spa@3.9.0, brezel/api@0.79.0
Recipe functions are a powerful way to extend the functionality of your Brezel instance.
This helps you to create custom logic that can be reused in your recipes.
Extending recipes in Brezel SPA
Different providers
There are different providers for different parts of the frontend:
General recipe provider: used by all parts of the frontend.
Layout recipe provider: used by the layout part of the frontend, and extends the general recipe provider.
Menu recipe provider: used by the menu part of the frontend, and extends the general recipe provider.
Extending providers
General recipe provider
Component recipe provider
Extending Recipes in Brezel API
Create a new provider that extends the NativeRecipesDriver and add your functions there.
Don’t forget to register your provider in the bootstrap/app.php file.