1

I have a Laravel project new. I want to migrate the database and initialize the database. so inside new project I have

vendor/bin(folders)/phinx.php(file)

I want to migrate the database and initialize tables I tried:

vendor/bin/phinx migrate(not working)

/var/www/html/new/vendor/bin $ cd phinx seed:run

but

bash: cd: phinx: Not a directory

I am new to laravel, how can I do this?

2
  • Are you trying to migrate some tables of a package ? Commented Feb 26, 2019 at 6:04
  • Is phinx a package you installed? Other than that there's documentation on migration available, basically you run php artisan migrate to run migrations. If you have a 3rd party package with migrations you'd first need to php artisan vendor:publish to publish those migrations to the database/migrations folder Commented Feb 26, 2019 at 6:32

1 Answer 1

1

please try this for create database table

/var/www/html/new $ vendor/bin/phinx migrate(no need of cd)

and intialize tables

  /var/www/html/new $ vendor/bin/phinx seed:run
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.