This PR introduces two changes to make it more comfortable to work with options:
Registers templates to the Laravel service container, so you can use Laravel's dependency injection (and also automatic facades) to comfortably access your global options from controllers and such.
This PR introduces two changes to make it more comfortable to work with options:
Registers templates to the Laravel service container, so you can use Laravel's dependency injection (and also automatic facades) to comfortably access your global options from controllers and such.
This happens when you call
Manager::register
.Here's an example that works in this PR:
Added
registerOption
function, an alias forregister('option', ...)
, to make it more obvious and easy to remember.