curder / laravel-package-demo
laravel-package-demo
dev-master
2021-03-19 09:48 UTC
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
- spatie/laravel-package-tools: ^1.4
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2024-12-19 18:07:11 UTC
README
This is a laravel package, and it is a demo for study.
- laravel命令行测试 curder/laravel-console-command-test-demo
- php 拓展包 curder/php-package-demo
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.