In laravel Nova login form, i want to add select filed for choosing database (examp: database2023 and database2024). When user login, it will connect to chosen database. How to
Add select filed to login form of laravel nova
when logging in, how to set laravel nova connect to choosen database
@Tray2 On the Nova login form page, I want to add a year option (2023,2024,...). When the user logs in, I want to add a session variable containing the selected year
@laravelwebdev How about you just stop creating databases per year? As @tray2 has told you, databases are literally made to hold large amounts of data.
want to separate database based on year coz so much record inside it
This is a really weird approach and not how databases are meant to be used. If you have a sensible schema and use indexes where needed, databases can handle a lot of data. That's what they're for.
If you can describe the real issue that you're having, I'm sure people can help you solve it.
How many records are we talking about? Do you have a peformance issue, or are you worried about something else (e.g. backup restoration time)?
but how can i add a year option (2023,2024,...) on the nova login form . When the user logs in, I want to add a session variable containing the selected year
@laravelwebdev The login view should be found in the resources/views directory, check in the vendors directory, if there isn't one, try running php artisan vendor:publish and then you should be able to update the login view.