PHP Classes


Recommend this page to a friend!
  Classes of Dipesh Sukhia  >  Laravel Package Development Skeleton  >  LICENSE  >  Download  
Role: License text
Content type: text/plain
Description: License text
Class: Laravel Package Development Skeleton
Create Laravel packages from a skeleton
Author: By
Last change:
Date: 8 months ago
Size: 910 bytes


Class file image Download
# Laravel Package Skeleton Packages are used to add new functionality in laravel. ## How to create a laravel Package? Create Package directory ```bash mkdir Package ``` Create directory structure for package ![plot](./dir-structure.png) ## Installation In project composer.json add ```bash "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 ```php // Usage description here ``` ### use facade ```bash LaravelPackageSkeletonFacade::getFacadeAccessor(); ``` ## Credits - [Dipesh Sukhia](