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
+1-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ Over the last 15 years, nearly every engineer at AREA 17 has contributed to Twil
41
41
With contributions from Laurens van Heems, Fernando Petrelli, Gilbert Moufflet, Mubashar Iqbal, Pablo Barrios, Luis Lavena, and Mike Byrne.
42
42
43
43
# Contributing
44
-
We look forward to your contribution to make Twill the best it can be. You can find our contribution guidelines in the Twill [documentation](https://twill.io/docs#contribution-guide).
44
+
We look forward to your contribution to make Twill the best it can be. You can find our contribution guidelines in the Twill [documentation](https://twill.io/docs/#content-contribution-guide).
45
45
46
46
# Security vulnerabilities
47
47
If you discover a security vulnerability within Twill, please email us at [[email protected]](mailto:[email protected]). All security vulnerabilities will be promptly addressed.
Finally, in your `AuthServiceProvider` class, redefine [Twill's default permissions](https://github.com/area17/twill/blob/e8866e40b7df4a6919e0ddb368990d04caeb705a/src/AuthServiceProvider.php#L26-L48) if you need to, or
86
+
add your own, for example:
88
87
89
88
```php
90
89
<?php
@@ -124,7 +123,7 @@ class AuthServiceProvider extends ServiceProvider
124
123
}
125
124
```
126
125
127
-
If you need a more dynamic aproach you can also get the current permission enum using the facade:
126
+
If you need a more dynamic approach you can also get the current permission enum using the facade:
128
127
129
128
```php
130
129
TwillPermissons::roles()::PUBLISHER (or any role)
@@ -141,12 +140,10 @@ You can use your new permission and existing ones in many places like the `twill
141
140
```
142
141
143
142
Also in forms blade files using `@can`, as well as in middleware definitions in routes or controllers,
144
-
see [Laravel's documentation](https://laravel.com/docs/10.x/authorization#via-middleware) for more info.
143
+
see [Laravel documentation](https://laravel.com/docs/10.x/authorization#via-middleware) for more info.
145
144
146
145
You should follow the Laravel documentation regarding [authorization](https://laravel.com/docs/10.x/authorization). It's
147
-
pretty good. Also if you would like to bring administration of roles and permissions to the admin
148
-
application, [spatie/laravel-permission](https://github.com/spatie/laravel-permission) would probably be your best
Copy file name to clipboardexpand all lines: docs/content/1_docs/11_dashboard/index.md
+4-8
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,10 @@
1
1
# Dashboard
2
2
3
-
Once you have created and configured multiple CRUD modules in your Twill's admin console, you can configure Twill's
4
-
dashboard in `config/twill.php`.
3
+
Once you have created and configured multiple CRUD modules in your Twill's admin console, you can configure Twill's dashboard in `config/twill.php`.
5
4
6
5
## Model activity
7
6
8
-
For each module that you want to enable in a part or all parts of the dashboad, add an entry to the `dashboard.modules`
9
-
array, like in the following example:
7
+
For each module that you want to enable in a part or all parts of the dashboard, add an entry to the `dashboard.modules` array, like in the following example:
10
8
11
9
```php
12
10
return [
@@ -31,7 +29,7 @@ return [
31
29
];
32
30
```
33
31
34
-
## Google analytics
32
+
## Google Analytics
35
33
36
34
You can also enable a Google Analytics module:
37
35
@@ -50,9 +48,7 @@ return [
50
48
51
49
It is using Spatie's [Laravel Analytics](https://github.com/spatie/laravel-analytics) package.
to setup a Google service account and download a json file containing your credentials, and provide your Analytics view
55
-
ID using the `ANALYTICS_VIEW_ID` environment variable.
51
+
Follow [Spatie's documentation](https://github.com/spatie/laravel-analytics#how-to-obtain-the-credentials-to-communicate-with-google-analytics) to set up a Google service account and download a json file containing your credentials, and provide your Analytics view ID using the `ANALYTICS_VIEW_ID` environment variable.
0 commit comments