user()->is_admin; } public function rules(): array { return [ 'media_path' => 'string|required|path.valid', ]; } }