PHP 8.2.30
Preview: ProfileUpdateRequest.php Size: 962 B
/home/byroehnu/cnggold.com.ng/app/Http/Requests/Frontend/ProfileUpdateRequest.php

<?php

namespace App\Http\Requests\Frontend;

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

class ProfileUpdateRequest extends FormRequest
{
    /**
     * Determine if the user is authorized to make this request.
     */
    public function authorize(): bool
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
     */
    public function rules(): array
    {
        return [
            'name' => ['required', 'max:100'],
            'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
            'user_image' => ['image', 'max:2048', 'nullable'],
            'phone' => ['required'],
            'country' => ['required'],
            'address' => ['required'],
        ];
    }
}

Directory Contents

Dirs: 1 × Files: 6

Name Size Perms Modified Actions
Ticket DIR
- drwxr-xr-x 2025-04-13 07:02:31
Edit Download
771 B lrw-r--r-- 2025-04-08 04:12:56
Edit Download
681 B lrw-r--r-- 2025-04-15 10:33:57
Edit Download
723 B lrw-r--r-- 2025-04-08 04:12:56
Edit Download
889 B lrw-r--r-- 2025-05-08 11:48:26
Edit Download
962 B lrw-r--r-- 2025-04-15 10:33:57
Edit Download
648 B lrw-r--r-- 2025-04-15 10:33:57
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).