DEV Community

Discussion on: Activate links of Laravel Blade based on current route name

Collapse
 
jsn1nj4 profile image
Elliot Derhay • Edited

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.

Collapse
 
haamid profile image
Hamid Haghdoost

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:

  • Testing
  • Versioning
  • Binding to IOC
  • Publishing the config files
  • Making the Facades
  • ...

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 :)