<?php  namespace App\Rules;  use App\Models\Page; use Illuminate\Contracts\Validation\Rule;  class MainPage implements Rule { 	private ?Page $page = null;  	/** 	 * Create a new rule instance. 	 */ 	public function __construct(?Page $page = null){}  	public function __toString(): string{}  	/** 	 * Determine if the validation rule passes. 	 * 	 * @param string $attribute 	 */ 	public function passes($attribute, $value): bool{}  	/** 	 * Get the validation error message. 	 */ 	public function message(): string|array{} }