Answers for "laravel validation unique column name on update"

PHP
2

Laravel Validate unique column

'business_name' => 'required|unique:companies,name',
Posted by: Guest on August-31-2021
1

laravel validation unique if this field is changed

use Illuminate\Validation\Rule;

$request->validate([
    'phone' => [
        'required',
        Rule::unique('table_name',
Posted by: Guest on September-30-2021

Code answers related to "laravel validation unique column name on update"

Browse Popular Code Answers by Language