HDInnovations / UNIT3D-Community-Edition

Private Torrent Tracker Built With Laravel, Livewire and AlpineJS.
GNU Affero General Public License v3.0
1.97k stars 378 forks source link

Side Navigation #459

Closed m333w closed 5 years ago

m333w commented 5 years ago

Hi all,

First thx for all that work, i love it. Someone can tell me how i can set the "Side navigation" to "Expanded" for all user ?

Best regards.

HDVinnie commented 5 years ago

Why do that when its optional in the users Account Settings. That way they can choose what they prefer.

Otherwise there is a few other ways you can achieve what you want.

1) Change the default of 0 for nav column in users table to 1

OR

2) In /app/Http/Controllers/Auth/RegisterController.php Find this line: $user->style = config('other.default_style', 0); https://github.com/HDInnovations/UNIT3D/blob/51dbce217ec7a695de82fde7dd3ccc867d145cdb/app/Http/Controllers/Auth/RegisterController.php#L91 and add after it $user->nav = 1;

m333w commented 5 years ago

Thank you :)