inertiajs GET code example
Example: inertia.js
class UsersController
{
public function index()
{
$users = User::active()
->orderByName()
->get()
->only('id', 'name', 'email');
return Inertia::render('Users', [
'users' => $users
]);
}
}