This repository was archived by the owner on Oct 15, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 18
18
- php artisan passport: install
19
19
- php artisan db: seed
20
20
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
+
21
70
### To create default guards, roles, permissions for Laravel Permission by using seeder
22
71
- config/custom_guards.php
23
72
- config/custom_roles.php
You can’t perform that action at this time.
0 commit comments