Answers for "laravel unique name validation"

PHP
2

Laravel Validate unique column

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

set unique value validation for laravel form request

use Illuminate\Validation\Rule;

public function rules()
{
    return [
	    'title' => [
		    'required',
		    Rule::unique('posts', 'title')->ignore($this->post)
	    ]
    ]; 
}
Posted by: Guest on January-03-2021
0

laravel unique validation

use Illuminate\Validation\Rule;

public function rules()
{
    return [
	    'title' => [
		    'required',
		    Rule::unique('posts', 'title')->ignore($this->post)
	    ]
    ]; 
}
Posted by: Guest on January-01-1970

Code answers related to "laravel unique name validation"

Browse Popular Code Answers by Language