inertia-laravel@v0.3.2

Published on October 21, 2020

Added a new $rootView property and rootView() method to the Inertia middleware for setting the root template.

class HandleInertiaRequests extends Middleware
{
    // Set root template via property
    protected $rootView = 'app';

    // Set root template via method
    public function rootView(Request $request)
    {
        return 'app';
    }
}