inertia-laravel@v0.3.4

Published on December 3, 2020

This release adds the ability to nest props using dot notation (commit). This allows you to modify a globally shared prop from within a specific controller.

class ProjectsController
{
    public function index()
    {
        return Inertia::render('Projects/Index', [
            'projects' => Project::all(),

            // Add a new permission check to the shared "auth.user" object for this endpoint.
            'auth.user.can.create_projects' => Auth::user()->can('create', Project::class),
        ]);
    }
}