initial commit
This commit is contained in:
17
start/inertia.ts
Normal file
17
start/inertia.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Inertia Preloaded File
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Any code written inside this file will be executed during the application
|
||||
| boot.
|
||||
|
|
||||
*/
|
||||
|
||||
import Inertia from '@ioc:EidelLev/Inertia';
|
||||
|
||||
Inertia.share({
|
||||
errors: (ctx) => {
|
||||
return ctx.session.flashMessages.get('errors');
|
||||
},
|
||||
}).version(() => Inertia.manifestFile('public/assets/manifest.json'));
|
||||
Reference in New Issue
Block a user