Routing
After installing hotCoffee you will see 2 additional lines were added in routes/web.php.
This is where the admin routes will be rendered. You can change the admin
prefix inconfig/hotcoffee.php
if you wish to do so.
This line is for the custom URLs of your info pages, articles and any other models you create that use the HasSef
trait. Always keep this at the bottom of routes.php
as your last route. You can read more about it in the Traits section or visit https://github.com/TaffoVelikoff/laravel-sef for the full documentation.
When you need to add new routes for your admin panel you can do something like this right afterHotCoffee::routes()
:
Alternatively you can publish the admin routes if you prefer or need to edit any of them.
This will create an admin.php
file inside the routes
folder of your project.
Next, edit the routes.php
:
Now you are free to not only add new routes for your admin zone, but also edit any of them.
Last updated