Looking to hire Laravel developers? Try LaraJobs

laravel-example-package maintained by idfx

Description
This is an example package for Laravel
Author
Last update
2025/05/12 15:25 (dev-main)
License
Downloads
12

Comments
comments powered by Disqus

This is an example package for Laravel

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is an example package for Laravel - Spatie package training.

Installation

You can install the package via composer:

composer require idfx/laravel-example-package

You can publish and run the migrations with:

php artisan vendor:publish --tag="example-package-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="example-package-config"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Command Output
    |--------------------------------------------------------------------------
    |
    | This value will be shown when the example command is executed
    |
    */

    'command_output' => 'Output configured in config file',

];

Optionally, you can publish the views using

php artisan vendor:publish --tag="example-package-views"

Usage

$example = new Idfx\Example();
echo $example->echoPhrase('Hello, Idfx!');

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.