Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/filefabrik/bootraiser
Laravel Boot Trait which covers your laravel package boot process from all locations
https://github.com/filefabrik/bootraiser
boot custom-package laravel-package
Last synced: 1 day ago
JSON representation
Laravel Boot Trait which covers your laravel package boot process from all locations
- Host: GitHub
- URL: https://github.com/filefabrik/bootraiser
- Owner: Filefabrik
- License: mit
- Created: 2024-05-19T16:21:20.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-12-04T15:55:04.000Z (2 months ago)
- Last Synced: 2025-02-06T12:08:52.571Z (4 days ago)
- Topics: boot, custom-package, laravel-package
- Language: PHP
- Homepage:
- Size: 299 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG
- License: LICENSE
Awesome Lists containing this project
README
# Bootraiser
Booting Utility for Laravel custom Packages
### Features
* Bootraiser saves you all the booting|publishable boilerplate required for a Laravel package.
* Bootraiser can be easily integrated into existing packages.
* Bootraiser is completely based on laravel
* no “extra-magic” packages necessaryIf you write your own Laravel packages, parts of your package usually have to be booted in Laravel.
This can sometimes cost an unnecessary amount of time.
Filefabrik-Bootraiser provides you with all important Laravel boot methods immediately and without much configuration
effort.
It is also quite cool if the Laravel “publish” methods are supported so that views|translations|configs and so on, overrides can be
published later.* documentation: https://bootraiser.filefabrik.com
* github-project: https://github.com/Filefabrik/bootraiser
* packagist.org: https://packagist.org/packages/filefabrik/bootraiser**Bootraiser strictly uses [SemVer](https://semver.org/) so please use `~2.0`**
Installation:
```shell
composer require "filefabrik/bootraiser:~2.0"
```## Modify your YourPackageServiceProvider.php
Then go to your provider file, which is usually under:
`~/packages/your-package/src/Providers/YourPackageServiceProvider.php`
YourPackageServiceProvider.php file looks like this:
```php
loadConfigs()
;
}public function boot(): void
{
Raiser::forProvider($this)
->publishConfigs()
->migrations()
->routes()
->translations()
->views()
->components()
->commands()
->livewire()
;
}}
```Then which components you want to boot with Bootraiser as an Array or via Methods as above shown.
Note: You can enter all parts as boot parts. Bootraiser only boots the parts that are actually in your package.
The following "load" mechanisms are available to you:
* configs
* routes
* migrations
* translations
* views + view components
* commands
* livewire
* seeder, factory
* events, listener