getResource()::getUrl('index'); } protected function handleRecordCreation(array $data): Model { if ($data['type'] == "game" || $data['type'] == "literature") { $data['can_be_loaned'] = true; } return static::getModel()::create($data); } }