Host Integration Steps

When the EvoLayer Base framework is installed into an application, several host-level files are modified to support the substrate. In the Starter Kit, these edits are pre-applied.

Pre-applied Modifications

  • app/Http/Middleware/HandleInertiaRequests.php: Shares the evolayer.base.{examples,features} properties via Inertia to the client.
  • app/Models/User.php: Injects the Spatie\Permission\Traits\HasRoles trait to enable role-based gating (e.g., hasRole('admin')).
  • resources/js/components/app-sidebar.tsx: Renders the enabled example pages dynamically using the useExampleNavItems() hook.
  • resources/js/types/global.d.ts: Provides strict TypeScript definitions for the evolayer shared prop.
  • database/seeders/DatabaseSeeder.php: Automatically seeds the baseline AI capability ledger and the required admin demonstration user ([email protected]).

Was this page helpful?

Source: xuple/evodevops/resources/js/pages/docs/evolayer-base/reference/host-integration-steps.tsx