LaravelPackages.net
Acme Inc.
Toggle sidebar
frogbob/inertia-laravel-blade-share

Provides data for common blade-directives from laravel to internia-vue

9
0
About frogbob/inertia-laravel-blade-share

frogbob/inertia-laravel-blade-share is a Laravel package for provides data for common blade-directives from laravel to internia-vue. It currently has 0 GitHub stars and 9 downloads on Packagist. Install it with composer require frogbob/inertia-laravel-blade-share. Discover more Laravel packages by frogbob or browse all Laravel packages to compare alternatives.

Last updated

Provides data for common blade-directives from laravel to internia-vue

Inertia Laravel Blade Share

Docs

Installation

composer require frogbob/inertia-laravel-blade-share

The package follows laravels package-autodiscover. So there is no need to initiate it in your app.php.

Given data

For now following data will be shared with vue via inertia.js:

auth Checks if user is authenticated | Used in: auth, guest

csrf Shares csrf-token from session | Used in: csrf

errors Shares error-bag | Used in: error

All given data are also globally available in vue via this.$page.KEY

this.$page.auth
this.$page.csrf
this.$page.errors

Star History Chart