Skip to content

Commit b7e920a

Browse files
author
Shawn McCool
committed
Merge branch 'master' of https://github.com/ProgerXP/docs into hotfix/typos
Conflicts: controllers.md
2 parents cae32f9 + 44aec76 commit b7e920a

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

controllers.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
Controllers are classes that are responsible for accepting user input and managing interactions between models, libraries, and views. Typically, they will ask a model for data, and then return a view that presents that data to the user.
1919

20-
The usage of controllers is the most common method of implementing application logic in modern web-development. However, Laravel also empowers developers to implement their application logic within routing declarations. This is explored in detail in the [routing document](/docs/routing). New users are encouraged to start with controllers. There is nothing that route-based application logic can do that controllers can't.
20+
The usage of controllers is the most common method of implementing application logic in modern web-development. However, Laravel also empowers developers to implement their application logic within routing declarations. This is explored in detail in the [routing document](/docs/routing). New users are encourage to start with controllers. There is nothing that route-based application logic can do that controllers can't.
2121

2222
Controller classes should be stored in **application/controllers** and should extend the Base\_Controller class. A Home\_Controller class is included with Laravel.
2323

@@ -40,7 +40,7 @@ Controller classes should be stored in **application/controllers** and should ex
4040
<a name="controller-routing"></a>
4141
## Controller Routing
4242

43-
It is important to be aware that all routes in Laravel must be explicitly defined, including routes to controllers.
43+
It is important to be aware that all routes in Laravel must be explicitly defined, including routes to controllers.
4444

4545
This means that controller methods that have not been exposed through route registration **cannot** be accessed. It's possible to automatically expose all methods within a controller using controller route registration. Controller route registrations are typically defined in **application/routes.php**.
4646

@@ -78,7 +78,7 @@ Great! Now we can access our "admin" bundle's home controller from the web!
7878
<a name="action-filters"></a>
7979
## Action Filters
8080

81-
Action filters are methods that can be run before or after a controller action. With Laravel you don't only have control over which filters are assigned to which actions. But, you can also choose which http verbs (post, get, put, and delete) will activate a filter.
81+
Action filters are methods that can be run before or after a controller action. With Laravel you don't only have control over which filters are assigned to which actions. But, you can also choose which http verbs (post, get, put, and delete) will activate a filter.
8282

8383
You can assign "before" and "after" filters to controller actions within the controller's constructor.
8484

routing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- [The Basics](#the-basics)
66
- [Wildcards](#wildcards)
7-
- [The 404 Events](#the-404-event)
7+
- [The 404 Event](#the-404-event)
88
- [Filters](#filters)
99
- [Pattern Filters](#pattern-filters)
1010
- [Global Filters](#global-filters)

views/home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ You can access your message from the view with the Session get method:
230230
<a name="errors"></a>
231231
## Errors
232232

233-
To generating proper error responses simply specify the response code that you wish to return. The corresponding view stored in **views/error** will automatically be returned.
233+
To generate proper error responses simply specify the response code that you wish to return. The corresponding view stored in **views/error** will automatically be returned.
234234

235235
#### Generating a 404 error response:
236236

0 commit comments

Comments
 (0)