vendorname / laravel-package-skeleton
Package Description
dev-master
2022-10-16 02:50 UTC
Requires
- php: ^7.4|^8.0|^8.1
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-12-16 07:39:22 UTC
README
Packages are used to add new functionality in laravel.
How to create a laravel Package?
Create Package directory
mkdir Package
Create directory structure for package
Installation
In project composer.json add
"autoload": { "psr-4": { "App\\": "app/", "Database\\Factories\\": "database/factories/", "Database\\Seeders\\": "database/seeders/", "VendorName\\LaravelPackageSkeleton\\": "Package/laravel-package-skeleton/src" } },
config/app.php add in to 'providers' array
VendorName\LaravelPackageSkeleton\LaravelPackageSkeletonServiceProvider::class,
Usage
// Usage description here
use facade
LaravelPackageSkeletonFacade::getFacadeAccessor();