"Packages are the primary way of adding functionality to Laravel. Packages might be anything from a great way to work with dates like Carbon, or an entire BDD testing framework like Behat." https://laravel.com/docs/master/packages
Use this package to help develop new packages to share among your projects -- or the world.
- Clone this repo.
- Rename the following to match your repository & package name:
- namespace:
Askedio\LaravelVendorPackage
- composer package name:
askedio/laravel-vendor-package
- resource namespace:
LaravelVendorPackage
- namespace:
- Add to https://packagist.org.
- Using your details, install with commands below.
Install a fresh copy of Laravel then require the package:
composer create-project --prefer-dist laravel/laravel blog
cd blog
composer require askedio/laravel-vendor-package:dev-master
Register the service providers to enable the package:
Askedio\LaravelVendorPackage\Providers\AppServiceProvider::class,
Autoload it:
composer dumpautoload
php artisan serv
Browse to http://localhost:8000/dashboard
In the packages repository folder:
composer install
vendor/bin/phpunit