Powered by
Custom navigation under user settings
# ❓questions
i
ifox
03/17/2023, 10:28 AM
I'm afraid this isn't possible without an override of the internal UsersController
ifox
03/17/2023, 10:28 AM
https://github.com/area17/twill/blob/861032e3c94965c59cc5c5d2ef2f1014b6e2011f/src/Http/Controllers/Admin/UserController.php#L138
n
Nechalon
03/17/2023, 11:59 AM
okay, I have added an array key value after line 172. It shows up, do I need to do anything else inside the controller?
Nechalon
03/17/2023, 12:00 PM
Where would I attach a route to it?
i
ifox
03/17/2023, 12:15 PM
You're using twill 2 or 3? If you're on 2, it's the same as how you define the navigation in twill-navigation.php, so you can use
route
and pass a route name (instead of
'module' => true
)
n
Nechalon
03/17/2023, 12:17 PM
2.3.0.
Nechalon
03/17/2023, 12:20 PM
okay, it works, thank you 😄
2
Views
Previous
Next