Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Inertia JS

use InertiaInertia;

class EventsController extends Controller
{
    public function show(Event $event)
    {
        return Inertia::render('Event/Show', [
            'event' => $event->only(
                'id',
                'title',
                'start_date',
                'description'
            ),
        ]);
    }
}
Source by inertiajs.com #
 
PREVIOUS NEXT
Tagged: #Inertia #JS
ADD COMMENT
Topic
Name
2+9 =