PHP Classes

File: README.md

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

Contents

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

mkdir Package

Create directory structure for package

plot

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