-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Validator Class #2
Comments
I will add a validator library I found to the project for this issue. It will validate the form before submission and output any errors. |
hi can i use mysql, what i change in that? code.. |
Specify your connection type in app/config/database.php, you should be able to use whatever you like (thats supported by Laravel) as I don't believe I use any functions specific to one database. |
dear you mean just change , you are using 'default' => 'sqllite', and i replace it, with this. 'default' => 'mysql', |
Yeah but below 'default' make sure your MySQL db has the correct credentials. I |
'default' => 'sqlite', replace with 'default' => 'mysql', |
Right below that line, you need to actually define where your database is and give Laravel the right credentials, so you need to do something like this
You need to replace the host with wherever your database is, give it the correct username and password (user root, password password not recommended :P), and the correct port, then it wil work. Good luck |
I am already doing one validation with the customer database during a booking, to check to see if the customer already exists in the database, and there is many more areas in the app that need to have validation performed on them. This is going to get messy really fast, so a validator class will need to be implemented in the near future.
The text was updated successfully, but these errors were encountered: