Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Getting error after run the "php artisan migrate"

    Installing Bagisto
    5
    24
    5158
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sanjana singh last edited by

      Capture.PNG

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by rahul

        Hi,

        Please install composer first then run migrate & seed command.
        At root of project run 'composer install'

        Thanks

        1 Reply Last reply Reply Quote 0
        • D
          developer last edited by

          i have installed it when i type composer -v it gives me all the options available in composer ,for me i think that there is a missing folder

          1 Reply Last reply Reply Quote 0
          • R
            rahul last edited by rahul

            Hi,

            'composer -v' returns the version of composer with different options which is install in your system but every project has different composer dependencies which is mentioned in composer.json file so we need to install composer on our project seprately and reading 'composer.json' file, project install dependencies for it.

            So, Kindly run 'composer install' command at root of your project.

            Thanks

            D 1 Reply Last reply Reply Quote 0
            • D
              developer @rahul last edited by

              @rahul i have run this command but the problem is because of my weak connection some of the package did not install but do find the folder vendor

              1 Reply Last reply Reply Quote 0
              • D
                developer last edited by

                i have found .env.example file but .env file doesn't exists

                1 Reply Last reply Reply Quote 0
                • R
                  rahul last edited by

                  Hi,

                  Create .env file, you can run 'cp .env.example .env', then mentioned needy information in this file like -

                  DB_CONNECTION=mysql
                  DB_HOST=127.0.0.1
                  DB_PORT=3306
                  DB_DATABASE=******
                  DB_USERNAME=*******
                  DB_PASSWORD=*****

                  Then run migrate & seed

                  Thanks

                  1 Reply Last reply Reply Quote 0
                  • D
                    developer last edited by

                    is it php artisan migrate will create all the tables for me

                    1 Reply Last reply Reply Quote 0
                    • R
                      rahul last edited by

                      Run 'php artisan migrate' for creating table then 'php artisan db:seed' to seed data in database.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        developer @rahul last edited by

                        @rahul said in Getting error after run the "php artisan migrate":

                        artisan migrate

                        where can i find database table

                        1 Reply Last reply Reply Quote 0
                        • D
                          developer last edited by

                          when i run composer install i got this error it is unsafe to run dusk in production

                          1 Reply Last reply Reply Quote 0
                          • R
                            rahul last edited by

                            Hi,

                            Can you attach a screenshot 'php artisan migrate' command & if database is created then you can find tables in your database.

                            'unsafe to run dusk in production' is not error.

                            Thanks

                            1 Reply Last reply Reply Quote 0
                            • D
                              developer last edited by

                              Capture.PNG

                              1 Reply Last reply Reply Quote 0
                              • D
                                developer last edited by

                                Capture.PNG

                                1 Reply Last reply Reply Quote 0
                                • R
                                  rahul last edited by

                                  Hi @developer

                                  Please upgrade your database version which supports json columns because we are using JSON column and your current MariaDB version does not support it.

                                  follow this link for solution - https://stackoverflow.com/questions/44027926/update-xampp-from-maria-db-10-1-to-10-2.

                                  Thanks

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    developer last edited by

                                    @rahul said in Getting error after run the "php artisan migrate":

                                    follow this link for solution - https://stackoverflow.com/questions/44027926/update-xampp-from-maria-db-10-1-to-10-2.

                                    there are many upgradde which one should i upgrade to

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      rahul last edited by

                                      upgrade to 10.2 version.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        developer last edited by

                                        @rahul said in Getting error after run the "php artisan migrate":

                                        10.2 version.
                                        i download this version mariadb-10.2.10.tar.gz and i follow along but when i got to this step Rename xampp/mysql/data to data_old. i didn't find data folder

                                        1 Reply Last reply Reply Quote 0
                                        • D
                                          developer last edited by

                                          i found a folder called data but it is inside the C:\xampp\mysql\storage\mroonga\data

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            rahul last edited by

                                            If you are facing difficulty to upgrade it, uninstall it & download new MariaDB (10.2) & then check.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post