Skip to content
This repository was archived by the owner on Oct 15, 2023. It is now read-only.

Commit 4095202

Browse files
Update README.md
1 parent 375b634 commit 4095202

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

README.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,55 @@
1818
- php artisan passport:install
1919
- php artisan db:seed
2020

21+
### Custom Admin Route File
22+
- for admin routes, you can write admin routes in this file
23+
```
24+
routes/admin_web.php
25+
```
26+
- if you want more seperated route files, you can edit in **Laravel build-in RouteServiceProvider.php** file
27+
```php
28+
// for web
29+
protected function mapWebRoutes()
30+
{
31+
Route::middleware('web')
32+
->namespace($this->namespace)
33+
->group(function () {
34+
require base_path('routes/web.php');
35+
require base_path('routes/admin_web.php');
36+
});
37+
}
38+
39+
// for api
40+
protected function mapApiRoutes()
41+
{
42+
Route::prefix('api')
43+
->middleware('api')
44+
->namespace($this->namespace)
45+
->group(base_path('routes/api.php'));
46+
}
47+
```
48+
49+
### Admin Dashboard Url
50+
##### Default
51+
```
52+
http://127.0.0.1:8000/admin
53+
```
54+
##### Custom Prefix Name For Admin Dashboard (edit in **.env** or **config/app.php**)
55+
- set **PREFIX_ADMIN_URL** in **.env**
56+
```
57+
PREFIX_ADMIN_URL=backend
58+
```
59+
- now Admin Dashboard Url is
60+
```
61+
http://127.0.0.1:8000/backend/admin
62+
```
63+
64+
### Admin Account (in SuperAdminSeeder.php file)
65+
```
66+
67+
password: password
68+
```
69+
2170
### To create default guards, roles, permissions for Laravel Permission by using seeder
2271
- config/custom_guards.php
2372
- config/custom_roles.php

0 commit comments

Comments
 (0)