Answers for "not exists in databsae validation larabel"

PHP
1

validation not exist in table laravel

public function rules()
    {
        return [
            'phone_number' =>[
              'required' ,
              'unique:users,phone_number'
            ],
        ];
    }
Posted by: Guest on January-18-2022
0

laravel validation if data exists

'user_id' => 'required|exists:App\Models\Users,id'
Posted by: Guest on September-29-2021

Code answers related to "not exists in databsae validation larabel"

Browse Popular Code Answers by Language