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
New localization file will also be created within the `resources/lang` directory, thanks to `awes-io/localization-helper` package, which we'll discuss later.
42
+
Note that, new localization file will also be created within the `resources/lang` directory, thanks to the`awes-io/localization-helper` package, which we'll discuss later.
43
43
44
44
## Controller
45
45
46
-
Let's check out the newly generated controller. It includes several methods, firstly `constructor`, in which we're injecting repository (more on this later):
46
+
Let's check out the newly generated controller. It includes several methods, firstly `constructor`, in which repository instance is injected (more on this later):
47
47
48
48
```php
49
49
public function __construct(LeadRepository $leads)
@@ -52,7 +52,7 @@ public function __construct(LeadRepository $leads)
52
52
}
53
53
```
54
54
55
-
`Index` method, where we return auto-generated blade template, as well as page title and all leads:
55
+
`Index` method, where auto-generated blade template, as well as page title and all records, are returned:
56
56
57
57
```php
58
58
public function index(Request $request)
@@ -64,9 +64,9 @@ public function index(Request $request)
64
64
}
65
65
```
66
66
67
-
`_p($file_key, $default, $placeholders)` is a helper function from our localization package, [more info is available in documentation](https://github.com/awes-io/localization-helper).
67
+
> `_p($file_key, $default, $placeholders)` is a helper function from our localization package, [more info is available in documentation](https://github.com/awes-io/localization-helper).
68
68
69
-
Scope method, which is used to retrieve, filter and sort lead records (more on this later):
69
+
And `scope`method, which is used to retrieve, filter and sort leads records (more on this later):
70
70
71
71
```php
72
72
public function scope(Request $request)
@@ -77,7 +77,7 @@ public function scope(Request $request)
77
77
}
78
78
```
79
79
80
-
We're also paginating results and transforming response data via auto-generated API resource class.
80
+
Here we're also paginating results and transforming response data via auto-generated API resource class.
0 commit comments