anamarijapapic/laravel-example

This is an example Laravel package.

0.0.1 2023-07-05 14:55 UTC

README

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

My first Laravel package. This is an example Laravel package.
(Spatie Laravel Package Training v2.0 - Creating a Laravel package)

Installation

You can install the package via composer:

composer require anamarijapapic/laravel-example

You can publish and run the migrations with:

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

You can publish the config file with:

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

This is the contents of the published config file:

return [
    /**
     * This value will be shown when the example command is executed.
     */
    'command_output' => 'Output configured in config file',

    'another_option' => 'Another value',
];

Optionally, you can publish the views using

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

Usage

$example = new AnamarijaPapic\Example();

Testing

composer test

Changelog

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

Contributing

Please see CONTRIBUTING for details.

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.