Funny, I actually did do that with Route::currentRouteName().
Route::currentRouteName()
If this package is mostly adding a blade directive, that can be done here also: laravel.com/docs/9.x/blade#extendi...
I mention this in case anyone is averse to adding a package for something this small.
Thank you for your comment. Yes, actually I have extended a custom directive in this package. I have several purposes for this package.
First I wanted to write a package to be familiar with aspects of package development in Laravel like:
And I hope to make it better and add some other features in future.
And I will be happy to hear your suggestions and maybe contributions :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Funny, I actually did do that with
Route::currentRouteName()
.If this package is mostly adding a blade directive, that can be done here also: laravel.com/docs/9.x/blade#extendi...
I mention this in case anyone is averse to adding a package for something this small.
Thank you for your comment. Yes, actually I have extended a custom directive in this package. I have several purposes for this package.
First I wanted to write a package to be familiar with aspects of package development in Laravel like:
And I hope to make it better and add some other features in future.
And I will be happy to hear your suggestions and maybe contributions :)