<?php

namespace App\Http\Requests\Admin;

use Illuminate\Foundation\Http\FormRequest;

class PublishPageRequest extends FormRequest
{
    public function authorize(): bool
    {
        return $this->user()?->canPublishContent() ?? false;
    }

    public function rules(): array
    {
        return [];
    }
}
