-1

I'm trying to set up database migrations using Illuminate's Database outside of a Laravel 4.2 project. Everything I'm reading online indicated that it is completely doable to use any Illuminate components outside of Laravel, but the difficulty I'm having is creating the database migrations without using Artisan commands ("php artisan make:migration create_user_table"). If any one could help me out with this, I'd really appreciate it, because I know someone has had to find a solution to the problem before.

Thanks!

1 Answers1

1

If you want to use artisan commands you should include the package of it and configure your application accordingly.

illuminate\database package doesn't provide you and artisan commands to use.

Ozan Kurt
  • 3,731
  • 4
  • 18
  • 32
  • My understanding is that artisan commands can only be used in a Laravel project, and the package isn't stand alone like the Illuminate components. Is that correct? –  Jan 01 '16 at 17:01
  • No, you can still setup artisan for a non-laravel project but its way too much work. I personally use an another console package from 'awesome-php' repo in github. – Ozan Kurt Jan 01 '16 at 17:04
  • I looked that up at https://github.com/ziadoz/awesome-php#migrations and there are multiple packages listed. it looks like this one might be best suited for what i'm trying to do? https://github.com/robmorgan/phinx –  Jan 01 '16 at 19:47
  • This is your choice, however you wish. ;) – Ozan Kurt Jan 01 '16 at 21:06
  • It would be cool if you could up-vote and accept the answer if I could help. – Ozan Kurt Jan 01 '16 at 21:06
  • I tried to upvote it but doesn't seem to be reflected. It has a popup about me not having enough reputation. –  Jan 04 '16 at 18:35