Support the ongoing development of Laravel.io →
Installation IOC Packages
Last updated 2 years ago.
0

Good question. I'm looking for the same answer.

I found this - http://stackoverflow.com/questions/28378460/laravel-5-package-development/28383338 - but trying workbeanch version and manual - both give me an error :(

0

I fixt it, the solution was to autoload my controllers folder in the composer.json file of my package. After that you can access the controller in your routes.php file (in your package) in this way

Route::get('/pathtoroute', 'vendorname\Packagename\Controllers\MyController@myFunction');

0

In the beginning I didn't have much luck with the workbench and then publishing it from the workbench, so I just started building packages and dealing with composer updates wiping out my code. To get around that issue I just used git and made my packages git repos and then ran a few commands all over again. PITA but it works for me ...

0

Sign in to participate in this thread!

Eventy

Your banner here too?

jorenvh jorenvh Joined 13 Dec 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.