API reference / Quittio \ Laravel
QuittioServiceProvider
final class in quittio/laravel · extends Illuminate\Support\ServiceProvider
Quittio\Laravel\QuittioServiceProvider · Source
Registers the Quittio manager, configuration, views, translations, commands and the local preview route.
Constants#
| Constant | Value | Description |
|---|---|---|
DOCUMENT_UPCASTERS | 'quittio.snapshots.documents' | Container key of the upcaster chain of document snapshots. |
Methods#
| Method | Description |
|---|---|
->boot() | Loads the views and translations, routes the labels through Laravel's translator, installs the configured snapshot upcaster chains and the default VAT of lines without ->vat(), and registers the preview route; in the console also the publishable files, the Artisan commands and the "about" section. |
::corePath() | Absolute path of $path inside the installed quittio/core package (e.g. resources/lang), the package root for an empty path. |
::packagePath() | Absolute path of $path inside the quittio/laravel package, the package root for an empty path. |
->register() |
boot()#
public function boot(): voidLoads the views and translations, routes the labels through Laravel's translator, installs the configured snapshot upcaster chains and the default VAT of lines without ->vat(), and registers the preview route; in the console also the publishable files, the Artisan commands and the "about" section.
corePath()#
public static function corePath(string $path = ''): stringAbsolute path of $path inside the installed quittio/core package (e.g. resources/lang), the package root for an empty path.
| Parameter | Type | Description |
|---|---|---|
$path | string = '' |
- Returns
string
packagePath()#
public static function packagePath(string $path = ''): stringAbsolute path of $path inside the quittio/laravel package, the package root for an empty path.
| Parameter | Type | Description |
|---|---|---|
$path | string = '' |
- Returns
string
register()#
public function register(): void