Looking to hire Laravel developers? Try LaraJobs

laravel-package maintained by kda

Description
Reusable package library
Author
Last update
2025/04/01 22:15 (1.2.x-dev)
License
Links
Downloads
591

Comments
comments powered by Disqus

laravel-package

Introduction

This Laravel package provides a set of traits and functionalities to streamline the development of Laravel packages. It includes features for handling routes, migrations, views, assets, and more.

Installation

To install the package, use Composer:

    composer require kda/laravel-package

Basic usage

The base purpose of this package is to separate the package configuration from the ServiceProvider.

First you have to create a package class


<?php

namespace KDA\Laravel\Pinnable;

use KDA\Laravel\Package\Package as KDAPackage;

class Package extends KDAPackage
{
  
    protected static string $package_name = 'laravel-pinnable';

    protected function setUp(): void
    {
        
    }

    public function boot()
    {
        
        parent::boot();
    }
}