app/Http/Controllers/EventController.php
/**
     * Show the form for editing the specified resource.
     *
     * @param  \App\Models\Event  $event
     * @return \Illuminate\Http\Response
     */
Show the form for editing the specified resource.
Show the form for editing the specified resource .
public function edit(Event $event)
    {
        return Inertia::render(
            'UpdateEvent',
            ['event' => new EventResource($event)]
        );
    }
public function edit ( Event $ event ) { return Inertia :: render ( 'UpdateEvent' , [ 'event' => new EventResource ( $ event ) ] ) ; }
Show the form for editing the specified resource.
Show the form for editing the specified resource .