1

I have a problem with install VentureCraft/revisionable in Laravel. When I trying use this command:

php artisan migrate --package=venturecraft/revisionable

Artisan returned error:

[Symfony\Component\Console\Exception\RuntimeException] The "--package" does not exist.

I using Laravel version 5.2

major697
  • 139
  • 1
  • 2
  • 15

2 Answers2

2

The --package syntax was only available in Laravel 4. It seems like this package has old documentation based off that release.

You'll need to go into the vendor/venturecraft/revisionable/migrations folder and copy the migration and insert it in your database/migrations folder.

Then run the command php artisan migrate.

Steve Bauman
  • 8,165
  • 7
  • 40
  • 56
2

Simply, you can migrate by:

php artisan migrate --path=vendor/venturecraft/revisionable/src/migrations
  • 1
    Yes, but does it scale? No. Any new installations of your project (aka, production servers, not your development machine) will have to run this migration _every_ time you create one. And, you have to take this into consideration _every_ time you do a `migrate:refresh`. Just to run the migration, this works fine, which is why I'm not down-voting, but I am up-voting @Steve 's answer, which should be the marked answer. – Nathan Robb Nov 23 '16 at 21:11