Skip to content

Thinking about removing the web.php file #13

Closed

Description

@rrr63

Hello,

Since the last version and the way to instantiate route with the new Route attribute, maybe it would be good to remove this file ?
Or at least, making it optional

// Providers/RouteServiceProvider.php
if(file_exists(base_path('routes/web.php'))){
    require base_path('routes/web.php');
}

Activity

  1. techmahedy commented on Oct 8, 2025

    @techmahedy
    Member

    Hi @rrr63 , I think both options will be good, cause we have a production-ready route caching system.

  2. rrr63 commented on Oct 8, 2025

    @rrr63
    MemberAuthor

    @techmahedy yes you are right, I think #14 fixed it anyway. Since it removed require base_path('routes/web.php');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featnew feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions