0

I am working on a Laravel, Vue3, and inertiajs project

This the controller function:

public function embedEvent(Request $request, Event $event)
{
    return Inertia::render('V2/Admin/Events/Partials/EventIntegrationGuide', [
        'event' => new EventResource($event),
    ]);
}

And this is the router:

Route::get('/event/embed/{event}', [EventController::class, 'embedEvent'])->name('events.embed');

This is the path of the component:

/resources/js/Pages/V2/Admin/Events/Partials/EventIntegrationGuide.vue

I tried these commands:

php artisan route:clear
php artisan route:cache

php artisan config:clear
php artisan config:cache

When I pushed my updates to my teammate its working fine for him.

3

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.