https://github.com/curder/laravel-package-demo
https://github.com/curder/laravel-package-demo
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/curder/laravel-package-demo
- Owner: curder
- License: mit
- Created: 2021-03-06T13:07:20.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-19T09:48:21.000Z (over 4 years ago)
- Last Synced: 2025-02-25T14:52:02.101Z (5 months ago)
- Language: PHP
- Size: 27.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# laravel-package-demo
[](https://packagist.org/packages/curder/laravel-package-demo)
[](https://github.com/curder/laravel-package-demo/actions?query=workflow%3ATests+branch%3Amaster)
[](https://github.com/curder/laravel-package-demo/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amaster)
[](https://packagist.org/packages/curder/laravel-package-demo)This is a laravel package, and it is a demo for study.
- laravel命令行测试 [curder/laravel-console-command-test-demo](https://github.com/curder/laravel-console-command-test-demo)
- php 拓展包 [curder/php-package-demo](https://github.com/curder/php-package-demo)## Installation
You can install the package via composer:
```bash
composer require curder/laravel-package-demo
```You can publish and run the migrations with:
```bash
php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-migrations"
php artisan migrate
```You can publish the config file with:
```bash
php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-config"
```This is the contents of the published config file:
```php
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:
```bash
php artisan vendor:publish --provider="Curder\LaravelPackageDemo\LaravelPackageDemoServiceProvider" --tag="laravel-package-demo-views"
```## Usage
customize route prefix, you should in routes of application
```php
use Illuminate\Support\Facades\Route;Route::laravelPackageDemo('your/customize/prefix');
```## Testing
```bash
composer test
```## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [curder](https://github.com/curder)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.