branch = $input['branch']; app(Git::class)->checkout($site); $site->save(); } /** * @throws ValidationException */ public static function rules(): array { return [ 'branch' => 'required', ]; } }