<?php

namespace App\Http\Requests;

use App\Models\Venue;

class UpdateVenueRequest extends StoreVenueRequest
{
    public function authorize(): bool
    {
        $venue = $this->route('venue');

        return $venue instanceof Venue && ($this->user()?->can('update', $venue) ?? false);
    }
}
