Zum Inhalt springen

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#

ConstantValueDescription
DOCUMENT_UPCASTERS'quittio.snapshots.documents'Container key of the upcaster chain of document snapshots.

Methods#

MethodDescription
->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(): void

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()#

public static function corePath(string $path = ''): string

static

Absolute path of $path inside the installed quittio/core package (e.g. resources/lang), the package root for an empty path.

ParameterTypeDescription
$pathstring = ''
Returns
string

packagePath()#

public static function packagePath(string $path = ''): string

static

Absolute path of $path inside the quittio/laravel package, the package root for an empty path.

ParameterTypeDescription
$pathstring = ''
Returns
string

register()#

public function register(): void

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.