Skip to content

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

License

Notifications You must be signed in to change notification settings

frogbob/inertia-laravel-blade-share

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages