Created package in Laravel workbench, but how to transfer to vendor folder? -


let's package in laravel test/test.

i created package in workbench , it's been working great following jason lewis' tutorial. want move package out of workbench vendor directory. all tutorials fall short, laravel docs. didn't want use git move files, copied test/test package workbench vendor directory (and deleted workbench). didn't copy test/test/vendor folder workbench (or other files noticed in .gitignore file). ran composer install new vendor/test/test directory. did composer dump-autoload laravel root directory.

now when run application error did not when package in workbench:

class 'test\test\testserviceprovider' not found (this coming \bootstrap\compiled.php on line 4121) 

i did php artisan dump-autoload laravel root , same error.

any ideas? or can lead me tutorial takes package development way it's final resting point in vendor directory?

got working.

i added:

"psr-0": {     "test\\test": "vendor/test/test/src/" } 

to autoload section in composer.json in laravel root directory looks this:

"autoload": {     "classmap": [         "app/commands",         "app/controllers",         "app/models",         "app/database/migrations",         "app/database/seeds",         "app/tests/testcase.php"     ],     "psr-0": {         "test\\test": "vendor/test/test/src/"     }        }, 

if decide put package on packagist later might remove autoload , keep package referenced in "require" part of composer.json. we'll see happens when far!


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -