Skip to content

Commit 8bec602

Browse files
authored
Merge pull request #31 from shawn-thesignchef/patch-1
Update README.md
2 parents e8c3f57 + 3b8a0c0 commit 8bec602

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# Laravel Advanced Route
2-
An advanced route for Laravel 5.3, 5.4, 5.5, 5.6, 5.8, 6.0, 7.0, 8.0, 9.0, 10.0 to support controllers
2+
An advanced route for Laravel 5.3, 5.4, 5.5, 5.6, 5.8, 6.0, 7.0, 8.0, 9.0, 10.0 to support controllers.
33

44
## Background ##
55
In Laravel 5.3 the advanced functionality Route::controller was removed.
66
This class fixes this shortcoming.
77

88
## Reason ##
9-
The default router is sufficient for small projects. Once the project starts to grow, placing all possible route definitions in the router file start to become harder to understand and follow. Quite often the router file becomes so messy, that the developer is afraid to modify/remove routes (even if these might be unused) in order to not break the application unexpectedly.
9+
The default router is sufficient for small projects. Once the project starts to grow, placing all possible route definitions in the router file starts to become harder to understand and follow. Quite often the router file becomes so messy that the developer is afraid to modify/remove routes (even if these might be unused) in order to not break the application unexpectedly.
1010

1111
The AdvancedRoute::controller gives the control to the controller itself, and makes each controller responsible for its own routing (destiny).
1212

1313
Specifying the controller methods with get/post/any prefixes improves readability, and allows to easily understand what HTTP method is being used to call the functionality just by viewing the method.
1414

15-
Does your router file not fit the screen and you have to scroll to see all routes? Have you split your routes in separate router files, and included these in one router files? Do you not feel comfortable removing routes, as these might be used somewhere? Do you use names to "name" your routes? Then its time to think outside the box and go advanced.
15+
Does your router file not fit the screen and you have to scroll to see all routes? Have you split your routes in separate router files, and included these in one router file? Do you not feel comfortable removing routes, as these might be used somewhere? Do you use names to "name" your routes? Then it's time to think outside the box and go advanced.
1616

1717
## How it works ##
1818

@@ -128,7 +128,7 @@ Laravel Advanced Route is only possible thanks to all the awesome [contributors]
128128

129129
## Alternatives ##
130130

131-
Is Laravel too bloated and slow, yes tell me about it? You want to go down the pure PHP route? Well, here are some notable packages, which will allow you to keep the niceties of the Larael routing:
131+
Is Laravel too bloated and slow? Yes, tell me about it! Do you want to go down the pure PHP route? Well, here are some notable packages which will allow you to keep the niceties of the Laravel routing:
132132

133133
https://github.com/mrjgreen/phroute
134134

0 commit comments

Comments
 (0)