traker
traker

Reputation: 101

Migrate and initialize database not working Laravel

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

Answers (1)

Shanu k k
Shanu k k

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

Related Questions