PHP package version
2.0.21
Inertia adapter(s) affected (if any)
Backend stack
Laravel 12.53
PHP 8.5.2
Describe the problem
After upgrading to version 2.0.21 I can't run the php artisan boost:update or :install anymore.
The problem seems to be with the following file: vendor/inertiajs/inertia-laravel/resources/boost/guidelines/core.blade.php
Full error:
Illuminate\View\ViewException
Call to undefined method Laravel\Boost\Install\Assists\Inertia::pagesDirectory() (View: /xyz/storage/framework/views/93dd1b762f2927fece5039c9b2cac4fe.blade.php)
at storage/framework/views/d2658d3c326cc9f281ca190bb089c080.php:4
1▕ # Inertia
2▕
3▕ - Inertia creates fully client-side rendered SPAs without modern SPA complexity, leveraging existing server-side patterns.
➜ 4▕ - Components live in ___SINGLE_BACKTICK___<?php echo e($assist->inertia()->pagesDirectory()); ?>___SINGLE_BACKTICK___ (unless specified in ___SINGLE_BACKTICK___vite.config.js___SINGLE_BACKTICK___). Use ___SINGLE_BACKTICK___Inertia::render()___SINGLE_BACKTICK___ for server-side routing instead of Blade views.
5▕ - ALWAYS use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ tool for version-specific Inertia documentation and updated code examples.
6▕ <?php if($assist->hasPackage(\Laravel\Roster\Enums\Packages::INERTIA_REACT)): ?>
7▕ - IMPORTANT: Activate ___SINGLE_BACKTICK___inertia-react-development___SINGLE_BACKTICK___ when working with Inertia client-side patterns.
8▕ <?php elseif($assist->hasPackage(\Laravel\Roster\Enums\Packages::INERTIA_VUE)): ?>
9▕ - IMPORTANT: Activate ___SINGLE_BACKTICK___inertia-vue-development___SINGLE_BACKTICK___ when working with Inertia Vue client-side patterns.
+1 vendor frames
2 [internal]:0
Laravel\Boost\Install\GuidelineComposer::{closure:Laravel\Boost\Install\GuidelineComposer::guidelinesDir():277}(Object(Symfony\Component\Finder\SplFileInfo), "xyz/vendor/inertiajs/inertia-laravel/resources/boost/guidelines/core.blade.php")
3 storage/framework/views/d2658d3c326cc9f281ca190bb089c080.php:4
Error::("Call to undefined method Laravel\Boost\Install\Assists\Inertia::pagesDirectory()")
Steps to reproduce
Upgrade to version 2.0.21
Previous boost:install results already existed.
PHP package version
2.0.21
Inertia adapter(s) affected (if any)
Backend stack
Laravel 12.53
PHP 8.5.2
Describe the problem
After upgrading to version
2.0.21I can't run thephp artisan boost:updateor:installanymore.The problem seems to be with the following file:
vendor/inertiajs/inertia-laravel/resources/boost/guidelines/core.blade.phpFull error:
Steps to reproduce
Upgrade to version
2.0.21Previous
boost:installresults already existed.