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
{{ message }}
This repository was archived by the owner on Jun 1, 2019. It is now read-only.
This package provides a very easy to use solution to log the activities of the users of your website or web application. All the activities will be logged in a db-table. Optionally the activities can also be logged against the default Laravel Log Handler.
5
6
6
7
## Installation
7
8
8
9
This package can be installed through Composer.
9
-
10
10
```js
11
11
{
12
12
"require": {
@@ -16,7 +16,6 @@ This package can be installed through Composer.
16
16
```
17
17
18
18
This service provider must be registered.
19
-
20
19
```php
21
20
22
21
// app/config/app.php
@@ -28,15 +27,12 @@ This service provider must be registered.
28
27
```
29
28
30
29
You'll also need to publish and run the migration in order to create the db-table.
31
-
32
30
```
33
31
php artisan migrate:publish spatie/activitylog
34
32
php artisan migrate
35
33
```
36
34
37
35
Activitylog also comes with a facade, which provides an easy way to call it.
38
-
39
-
40
36
```php
41
37
42
38
// app/config/app.php
@@ -47,29 +43,24 @@ Activitylog also comes with a facade, which provides an easy way to call it.
47
43
)
48
44
```
49
45
46
+
Optionally you can publish the config file of this package.
47
+
```
48
+
php artisan config:publish spatie/activitylog
49
+
```
50
50
51
+
The configuration will be written to ```app/config/packages/spatie/activitylog```. The options provided are self explanatory.
- $user: optional can be an user id or a user object.
62
+
if not proved the id of Auth::user() will be used
63
+
64
64
*/
65
-
```
66
-
67
-
The accuracy key can contain these values:
68
-
- 'ROOFTOP'
69
-
- 'RANGE_INTERPOLATED'
70
-
- 'GEOMETRIC_CENTER'
71
-
- 'APPROXIMATE'
72
-
73
-
You can read more information about these values [on the Google Geocoding API Page](https://developers.google.com/maps/documentation/geocoding/"Google Geocoding API")
74
65
75
-
When an address is not found accuracy will contain 'NOT_FOUND'
66
+
Activity::log('Some activity that you wish to log');
0 commit comments