Skip to content

Commit 9fae4dc

Browse files
committed
Merge branch 'master' into develop
2 parents 0dc124d + 8c580d1 commit 9fae4dc

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

laravel/documentation/auth/usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ To determine if the user of your application is logged in, call the **check** me
5050
return "You're logged in!";
5151
}
5252

53-
Use the **login** method to login a user without checking their credentials, such as after a user first registers to use your application. Just pass your user object or the user's ID:
53+
Use the **login** method to login a user without checking their credentials, such as after a user first registers to use your application. Just pass the user's ID:
5454

55-
Auth::login($user);
55+
Auth::login($user->id);
5656

5757
Auth::login(15);
5858

laravel/documentation/controllers.md

Lines changed: 1 addition & 1 deletion
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 encourage 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 encouraged 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

laravel/documentation/routing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,8 @@ The **Controller::detect** method simply returns an array of all of the controll
295295

296296
If you wish to automatically detect the controllers in a bundle, just pass the bundle name to the method. If no bundle is specified, the application folder's controller directory will be searched.
297297

298+
> **Note:** It is important to note that this method gives you no control over the order in which controllers are loaded. Controller::detect() should only be used to Route controllers in very small sites. "Manually" routing controllers gives you much more control, is more self-documenting, and is certainly advised.
299+
298300
#### Register all controllers for the "admin" bundle:
299301

300302
Route::controller(Controller::detect('admin'));

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ enjoy, not something that is painful. Enjoy the fresh air.
2727

2828
Route::get('/', function()
2929
{
30-
return "Hello World!":
30+
return "Hello World!";
3131
});
3232
```
3333

@@ -64,4 +64,4 @@ git commit -s -m "this commit will be signed off automatically!"
6464

6565
## License
6666

67-
Laravel is open-sourced software licensed under the MIT License.
67+
Laravel is open-sourced software licensed under the MIT License.

0 commit comments

Comments
 (0)