@@ -88,8 +88,8 @@ Next, commit the changes to the repository:
...
@@ -88,8 +88,8 @@ Next, commit the changes to the repository:
# git commit -s -m "I added some more stuff to the Localization documentation."
# git commit -s -m "I added some more stuff to the Localization documentation."
"- **-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core.
-**-s** means that you are signing-off on your commit with your name. This tells the Laravel team know that you personally agree to your code being added to the Laravel core.
"- **-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed.
-**-m** is the message that goes with your commit. Provide a brief explanation of what you added or changed.
@@ -425,7 +425,7 @@ In this example, **only two queries will be executed**!
...
@@ -425,7 +425,7 @@ In this example, **only two queries will be executed**!
SELECT * FROM "books"
SELECT * FROM "books"
SELECT * FROM "authors" WHERE "id" IN (1, 2, 3, 4, 5, ...)
SELECT * FROM "authors" WHERE "id" IN (1, 2, 3, 4, 5, …)
Obviously, wise use of eager loading can dramatically increase the performance of your application. In the example above, eager loading cut the execution time in half.
Obviously, wise use of eager loading can dramatically increase the performance of your application. In the example above, eager loading cut the execution time in half.
@@ -184,7 +184,7 @@ Now each time the "home" view is created, an instance of the View will be passed
...
@@ -184,7 +184,7 @@ Now each time the "home" view is created, an instance of the View will be passed
<aname="redirects"></a>
<aname="redirects"></a>
## Redirects
## Redirects
It's important to note that both routes and controllers require responses to be returned with the 'return' directive. Instead of calling "Redirect::to()"" where you'd like to redirect the user. You'd instead use "return Redirect::to()". This distinction is important as it's different than most other PHP frameworks and it could be easy to accidentally overlook the importance of this practice.
It's important to note that both routes and controllers require responses to be returned with the 'return' directive. Instead of calling "Redirect::to()" where you'd like to redirect the user. You'd instead use "return Redirect::to()". This distinction is important as it's different than most other PHP frameworks and it could be easy to accidentally overlook the importance of this practice.