You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -8,13 +8,13 @@
8
8
9
9
### Demo
10
10
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)
12
12
13
-
Route::resource('photos', 'PhotoController');
13
+
Route::resource('user', 'UserController');
14
14
15
15
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.
18
18
19
19
<?php
20
20
@@ -44,7 +44,7 @@ In Laravel Docs.they do it like this.
0 commit comments