user(); })->middleware('auth:sanctum'); Route::get('chats', [ChatsController::class, 'index']); Route::get('chats/{id}', [ChatsController::class, 'show']); Route::post('chats', [ChatsController::class, 'create']);