Details
Laravel Package Skeleton
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();
Credits
|
Screenshots |
|
March 2022
Nominee
Vote |
Laravel is a well-known PHP framework with a large ecosystem of PHP developers writing components to extend its core capabilities.
This package can help developers create a new Laravel package with less effort by providing a base skeleton to allow them to get started quickly.
Manuel Lemos |
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
config.php |
Aux. |
Auxiliary script |
File |
Role |
Description |
routes.php |
Aux. |
Auxiliary script |