curder/laravel-package-demo

dev-master 2021-03-19 09:48 UTC

This package is auto-updated.

Last update: 2024-04-19 16:40:59 UTC


README

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

This is a laravel package, and it is a demo for study.

Installation

You can install the package via composer:

composer require curder/laravel-package-demo

You can publish and run the migrations with:

php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-config"

This is the contents of the published config file:

return [
    /**
     * This is the text what will be output by the package command.
     */
    'command_output_text' => 'Hi from command',

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

You can publish the view files with:

php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-views"

Usage

customize route prefix, you should in routes of application

use Illuminate\Support\Facades\Route;

Route::laravelPackageDemo('your/customize/prefix');

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.