Search
 
SCRIPT & CODE EXAMPLE
 

PHP

Laravel unique Validation with multiple column

'name'        => 'required|max:150|unique:course_lessons,name,NULL,id,course_id,' . request('course_id'),
 "<input_filed_name>" => "valiadtionRule"|"ValidationRule"|"unique:<tableName>,<validateableField>,<ignoreableID>,<tablePrimaryKey>,<column1>,<column1Value>,<column2>,<column2Value>"
Comment

PREVIOUS NEXT
Code Example
Php :: laravel gmail send mail 2020 
Php :: octobercms mail 
Php :: hot to use functions in heredoc 
Php :: hasmany relationship in laravel 
Php :: livewire model array 
Php :: divide page in pdf with page break using php 
Php :: php number formatter 
Php :: laravel How to include model attribute automatically 
Php :: php config file 
Php :: php multi string to single string 
Php :: laravel route group 
Php :: encapsulation in php 
Php :: wpquery search taxonomy 
Php :: laravel make model 
Php :: php header author 
Php :: remove null values from array php 
Php :: how to empty an array in php 
Php :: php 8 loadmodule 
Php :: download file on client from server url php 
Php :: php laravel string substring 
Php :: How to insert header in php 
Php :: auth user with relation laravel 
Php :: Spatie vendor publish 
Php :: define function in php 
Php :: Make livewire component 
Php :: API call in PHP using cURL 
Php :: php isset 
Php :: global variable in laravel 
Php :: php string concatenation 
Php :: php implode in html tags 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =