I have created the two resource controller inside two different route groups. One for User One for Admin I am using the ‘route’ keyword for assigning the routes. I am doing so because I wanted to use same views files for both. Here is the blade file When I am in /admin/projects it is using the admin.projects resource routes as
Tag: router
Add 404 rule into PHP class router
I have a simple PHP router but I missed a rule if de file not exists. What I think is I must declare all files to check if the file exist? But this raises another question how to check if the endpoint …