laravel-package maintained by edram
Laravel Package
A reusable Laravel package foundation for building Edram Laravel extensions.
Installation
Install the package via Composer:
composer require edram/laravel-package
Publish the configuration file:
php artisan vendor:publish --tag="laravel-package-config"
Publish the migrations:
php artisan vendor:publish --tag="laravel-package-migrations"
php artisan migrate
Usage
Resolve the package from the container:
use Edram\LaravelPackage\LaravelPackage;
$laravelPackage = app(LaravelPackage::class);
echo $laravelPackage->echoPhrase('Hello, Laravel!');
Use the facade:
use Edram\LaravelPackage\Facades\LaravelPackage;
echo LaravelPackage::echoPhrase('Hello, Laravel!');
Run the package command:
php artisan laravel-package
Development
Run the test suite:
composer test
Run static analysis:
composer analyse
Format the code:
composer format
License
The MIT License (MIT). Please see License File for more information.