Reputation: 101
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?
Upvotes: 1
Views: 356
Reputation: 1285
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
Upvotes: 1