Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from
May 6, 2024

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 
        });

    }

@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
@taylorotwell taylorotwell merged commit 279c444 into laravel:11.x May 6, 2024
28 checks passed
@ahmedabdel3al ahmedabdel3al deleted the register-cached-routes branch May 6, 2024 21:45
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