Skip to content

Commit c72487f

Browse files
committed
Update README.md
1 parent ad22295 commit c72487f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- [Introduction](#introduction)
1212
- [Installation](#installation)
1313
- [Usage](#usage)
14+
- [Configuration](#configuration)
15+
- [Routes](#routes)
1416
- [User Configuration](#user-configuration)
1517
- [Foreign Key Type (UUID, ULID, ID)](#foreign-key-type-uuid-ulid-id)
1618
- [Visit Monitoring](#visit-monitoring)
@@ -74,7 +76,13 @@ If you want to publish the middlewares you can use this command:
7476
php artisan vendor:publish --tag="laravel-user-monitoring-middlewares"
7577
```
7678

77-
For convenience, you can use this command to publish config and migration files:
79+
If you want to publish the routes you can use this command:
80+
81+
```shell
82+
php artisan vendor:publish --tag="laravel-user-monitoring-routes"
83+
```
84+
85+
For convenience, you can use this command to publish config, migration and ... files:
7886

7987
```shell
8088
php artisan vendor:publish --provider="Binafy\LaravelUserMonitoring\Providers\LaravelUserMonitoringServiceProvider"
@@ -87,6 +95,29 @@ After publishing, run the `php artisan migrate` command.
8795

8896
The `Laravel-User-Monitoring`, just need to use middleware, traits, etc ... and it's not hard, enjoy :)
8997

98+
<a name="routes-configuration"></a>
99+
## Routes Configuration
100+
101+
If you want to cusomize the routes, you can publish the route file with this command:
102+
103+
```shell
104+
php artisan vendor:publish --tag="laravel-user-monitoring-routes"
105+
```
106+
107+
After, you can go to `routes/user-monitoring.php` file and customize the routes.
108+
109+
Also, if you want to change the route file name, you can go to config file and change the `file_path`:
110+
111+
```php
112+
/*
113+
* Configurations.
114+
*/
115+
'config' => [
116+
'routes' => [
117+
'file_path' => 'routes/user-monitoring.php',
118+
],
119+
],
120+
```
90121

91122
<a name="user-configuration"></a>
92123
## User Configuration

0 commit comments

Comments
 (0)