https://github.com/sokeio/laravel
https://github.com/sokeio/laravel
laravel-package
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sokeio/laravel
- Owner: sokeio
- License: mit
- Created: 2023-09-07T13:47:41.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-28T15:00:13.000Z (about 1 year ago)
- Last Synced: 2024-08-11T10:18:40.261Z (10 months ago)
- Topics: laravel-package
- Language: PHP
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Package Base
[](https://packagist.org/packages/sokeio/laravel)
[](https://packagist.org/packages/sokeio/laravel)This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
## Installation
You can install the package via composer:
```bash
composer require sokeio/laravel
``````php
//
use Illuminate\Support\ServiceProvider;
use Sokeio\Laravel\ServicePackage;
use Sokeio\Laravel\Traits\WithServiceProvider;class DemoServiceProvider extends ServiceProvider
{
use WithServiceProvider;public function configurePackage(ServicePackage $package): void
{
/*
* This class is a Package Service Provider
*
*/
$package
->name('demo')
->hasConfigFile()
->hasViews()
->hasHelpers()
->hasAssets()
->hasTranslations()
->runsMigrations();
}
public function extending()
{
}
public function packageRegistered()
{
$this->extending();
}
}```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Byte Asia](https://github.com/ByteAsia)
- [Sokeio](https://github.com/Sokeio)
- [Nguyen Van Hau](https://github.com/devhau)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.