laravel create a package code example
Example 1: Laravel package development
$ composer require jeroen-g/laravel-packager --dev
Example 2: Laravel package development
$ php artisan vendor:publish --provider="JeroenG\Packager\PackagerServiceProvider"