���� JFIF  x x �� C         �� C   ��   " ��     �� �  } !1AQa "q2���#B��R��$3br� %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz���������������������������������������������������������������������������     �� �   w !1AQ aq"2�B���� #3R�br�{ gilour

File "ProfileUpdateRequest.php"

Full Path: /home2/yvrgircc/public_html/ariseskilltech.com/app/Http/Requests/ProfileUpdateRequest.php
File size: 568 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace App\Http\Requests;

use App\Models\User;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

class ProfileUpdateRequest extends FormRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\Rule|array|string>
     */
    public function rules(): array
    {
        return [
            'name' => ['string', 'max:255'],
            'email' => ['email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
        ];
    }
}