Laravel 4 location of migrations and seeding folder -
i'm working on package hosted on private satis repo. when i'm starting new laravel 4 project require package repo , gets installed correctly. after installing want perform migrations , seeding, not function.
according laravel manual can perform migration package:
php artisan --env=dev migrate --package="kordaat/admin"
but not work, have run so:
php artisan --env=dev --path="vendor/kordaat/admin/src/database/migrations"
the above option works, not intended.
inside package composer.json looks like:
{ "name": "kordaat/admin", "description": "admin area created kordaat.", "keywords": ["laravel", "framework"], "license": "bsd-2-clause", "authors": [ { "name": "kordaat", "email": "xxx@xxxx.xxxx" } ], "require": { "php": ">=5.3.0", "illuminate/support": "4.1.*", "illuminate/database": "4.1.*", "imagine/imagine": "0.6.*@dev", "cartalyst/sentry": "2.0.*", "ircmaxell/password-compat": "1.0.*" }, "autoload": { "psr-0": { "kordaat\\admin": "src/" }, "classmap": [ "src/database/migrations", "src/database/seeds", "src/controllers", "src/models" ] }, "extra": { "branch-alias": { "dev-master": "0.1.x-dev" } }, "minimum-stability": "dev" }
the seeding files located (as stated in composer.json) inside "src/database/seeds" migrations located inside "src/database/seeds" , contains files like: "2013_07_07_194325_admin_users_table.php" , many more.
i performed composer self-update,
composer self-update
a composer update
composer update
and composer dump-autoload
composer dump-autoload
but still no migrations found.
as aspected, when moving migrations folder outside database folder inside root of src/ folder works way want it. besides wrong folder location.
php artisan --env=dev migrate --package="kordaat/admin" migration table created successfully. migrated: 2013_07_07_194325_admin_users_table migrated: 2013_07_07_210428_roles_table migrated: 2013_07_07_210933_permission_role_table migrated: 2013_07_07_211434_permissions_table migrated: 2013_07_17_144758_role_user migrated: 2013_07_17_145130_posts migrated: 2013_07_17_145413_images migrated: 2013_07_17_145631_settings migrated: 2013_07_17_150105_companions migrated: 2013_07_17_150120_companion_post
it must stupid, can't find proper way of doing it. can me out?
does vendor/koordat/admin -package's serviceprovider register package ioc? explain why --package
parameter doesn't work...
Comments
Post a Comment