Reputation: 13389
php artisan workbench vendor/package --resources
command is not available in laravel 5, but how now create package in laravel 5 ?
Upvotes: 27
Views: 20659
Reputation: 3234
In Laravel, these are some handy tricks I follow each time I need to create a Laravel package
Solution 1: Get a boilerplate template from https://github.com/cviebrock/laravel5-package-template, and put it under packages/
(follow the instruction in the repo)
Solution 2: Use a packager (with Laravel >= 5.5)
composer require jeroen-g/laravel-packager --dev
(check instruction in the repo here)composer require jeroen-g/laravel-packager --dev
etc, see full tutocomposer.json
Hope this is a good update for Laravel lovers ;)
Upvotes: 0
Reputation: 6193
Shameless self-promotion, but I've written a post about this called "Creating Laravel 5 packages for dummies" that explains how to create the package, how to put it on GitHub & Packagist and how to push changes/new versions afterwards.
If you're already familiar with creating packages in Laravel 4, the fastest solution I've found was to use this CLI tool.
Upvotes: 19
Reputation: 1052
The laravel workbench has been renamed in laravel 5 to "Package Development" in the documentation
http://laravel.com/docs/master/packages
Notice that there is no longer a workbench command and you need to create your own package structure, as the Laravel creator want to limit the dependency between created packages and the Laravel framework (#ref)
UPDATE: Laravel 5 is now stable and the illuminate/workbench
package can be used in a laravel 5 application as I suggested in this post
Upvotes: 18