Coder Social home page Coder Social logo

Create Validator Class about booking-app HOT 7 CLOSED

zeke8402 avatar zeke8402 commented on June 21, 2024
Create Validator Class

from booking-app.

Comments (7)

zeke8402 avatar zeke8402 commented on June 21, 2024

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.

from booking-app.

bc110402922 avatar bc110402922 commented on June 21, 2024

hi can i use mysql, what i change in that? code..

from booking-app.

zeke8402 avatar zeke8402 commented on June 21, 2024

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.

from booking-app.

bc110402922 avatar bc110402922 commented on June 21, 2024

dear you mean just change , you are using 'default' => 'sqllite', and i replace it, with this.

'default' => 'mysql',
that's it ?
booking name of Db, i make it, in the php myadmin
then i run these commands
php artisan migrate:rollback
php artisan migrate
regards
waiting , if you share email id , then i can share, img , i have alot of error.

from booking-app.

zeke8402 avatar zeke8402 commented on June 21, 2024

Yeah but below 'default' make sure your MySQL db has the correct credentials. I
tested this with MySQL so I know it works :)

from booking-app.

bc110402922 avatar bc110402922 commented on June 21, 2024

'default' => 'sqlite', replace with 'default' => 'mysql',
its not working with when i replace, dear i am student please tell me in detail m right now i change in daatabse.php file, and change in just line number 29 'default' => 'sqlite', i just created booking name of database in mysql . but still data is not show in the DB,
regards

from booking-app.

zeke8402 avatar zeke8402 commented on June 21, 2024

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

'mysql' => array(
            'driver'    => 'mysql',
            'host'      => 'localhost',
            'database'  => 'booking',
            'username'  => 'root',
            'password'  => 'password',
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'port'      => '8889',
        ),

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

from booking-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.