Skip to content

Commit 7a3a57d

Browse files
committed
correct syntax
1 parent b92760c commit 7a3a57d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
### Demo
1010

11-
At first,in the route file, we find *web.php* and write a simple resource route here.(Laravel 5.2 or lower version also similiar)
11+
At first,in the route file, we find *web.php* and write a simple Resource Route here.(Laravel 5.2 or lower version also similiar)
1212

13-
Route::resource('photos', 'PhotoController');
13+
Route::resource('user', 'UserController');
1414

1515

16-
Our UserController in Repository Parttern,I consider Repository as an interactive Data Layer to help us insulate models ,so here we write a method named 'getUserPaginate'.
17-
In Laravel Docs.they do it like this.
16+
I consider Repository as an interactive Data Layer to help us insulate models and controllers ,so here we write a method named 'getUserPaginate' in UserController.
17+
And in Laravel Docs,they do it like this.
1818

1919
<?php
2020

@@ -44,7 +44,7 @@ In Laravel Docs.they do it like this.
4444
}
4545
}
4646

47-
What's our UserRepository looks like?Don't worry,it shows here.
47+
What's our UserRepository?Don't worry,it shows here.
4848

4949
<?php
5050

0 commit comments

Comments
 (0)