This commit is contained in:
Torsten 2024-11-15 08:59:57 +01:00
parent 72decef6ca
commit cedf373c03
7 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,29 @@
https://www.youtube.com/watch?v=4neOZhzn-qI&list=PLT9miexWCpPW6Z_OXNv2d78cqCrZaPrVG&index=12
![[Pasted image 20241115082725.png]]
app/Config/Routes.php
![[Pasted image 20241115082852.png]]
http://godotweb.local/product/add
http://godotweb.local/product/list
http://godotweb.local/category/add
http://godotweb.local/category/list
**ROUTE NAMESPACE**
Create subfolder in Controllers directory
```bash
php spark make:controller Admin/Admin --suffix
```
![[Pasted image 20241115084552.png]]
```bash
php spark make:controller Seller/Seller --suffix
```
![[Pasted image 20241115084636.png]]
Access Controller in subfolder using namespace parameter in routes group method:
![[Pasted image 20241115085338.png]]

Binary file not shown.

Before

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 319 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 365 KiB