Closed tuanntjvb closed 4 years ago
In case you're looking for a Laravel package, there is one created by somebody in the community: https://github.com/blood72/laravel-yasumi. Although I haven't used it myself, it may be what you're looking for.
Cheers! Sacha
The Yasumi class is a simple factory class that you can use anywhere in your Laravel application, e.g. the controllers, models, or other classes.
Another possibility is to register it in your Service Provider class so it is available everywhere in your application.