<?php
namespace App\Http\Controllers;
use App\Models\Article;
use Illuminate\Http\Request;
use Inertia\Inertia;
class ArticleShowController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request, Article $article)
{
$article->load('user');
return Inertia::render('Article/Show', compact('article'));
}
}
works and titel also loads now. Only stil see warning
[Vue warn]: Failed to resolve component: Head
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement. (18)
"
"
" at <Show"
"jetstream="
{canCreateTeams: true, canManageTwoFactorAuthentication: true, canUpdatePassword: true, canUpdateProfileInformation: true, hasEmailVerification: false, …}
"user="
{id: 21, name: "User Name", email: "[email protected]", email_verified_at: null, current_team_id: 1, …}
"errorBags="
[] (0)
and relates to terminal building error
WARNING in ./resources/js/Pages/Article/Show.vue?vue&type=script&lang=js (./node_modules/babel-loader/lib/index.js??clonedRuleSet-5.use[0]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./resources/js/Pages/Article/Show.vue?vue&type=script&lang=js) 5:10-14
export 'Head' (imported as 'Head') was not found in '@inertiajs/inertia-vue3' (possible exports: App, Link, app, createInertiaApp, link, plugin, useForm, usePage, useRemember)
while I already import it..