Get all template_content into inertia

Hello, I'm experimenting with Statamic and Inertiajs I created a custom route:

Route::get('/', [Home::class, 'index']);

to a controller:

class Home extends Controller
    public function index(Home $page)
        $entry = \Statamic\Facades\Entry::findByUri('/');

        return Inertia::render('Home', [
            'title'   => $entry->get('title')

But from here it would be ideal to just insert all of the entry content instead of adding all of the props (title, content etc)

How would i add all of the entry content at once instead of just the title?

>>>>>>> Unanswered <<<<<<<
4 Replies