Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[11.x] Add ability to override the default loading cached Routes for application#51292

Merged
taylorotwell merged 2 commits intolaravel:11.xfrom
ahmedabdel3al:register-cached-routes
May 6, 2024
Merged

[11.x] Add ability to override the default loading cached Routes for application#51292
taylorotwell merged 2 commits intolaravel:11.xfrom
ahmedabdel3al:register-cached-routes

Conversation

@ahmedabdel3al
Copy link
Contributor

@ahmedabdel3al ahmedabdel3al commented May 4, 2024

The PR adding the ability to override the default loading of cached routes in application

based on the previous discussion on the #51249

class AppServiceProvider extends ServiceProvider
{
    /**
     * Register any application services.
     */
    public function register(): void
    {
        ...
        RouteServiceProvider::loadCachedRoutesUsing(function(){
         
          //logic here 
        });

    }

@ahmedabdel3al ahmedabdel3al force-pushed the register-cached-routes branch from bce7d7f to 63b9497 Compare May 4, 2024 23:16
@ahmedabdel3al ahmedabdel3al force-pushed the register-cached-routes branch from 63b9497 to 9aebca8 Compare May 4, 2024 23:18
@driesvints driesvints changed the title add ability to override the default loading cached Routes for application [11.x] Add ability to override the default loading cached Routes for application May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants