Posts

Showing posts from May, 2023

LARAVEL VALIDATION FUNCTIONALITY

Image
CUSTOM LARAVEL VALIDATION :      $validator = Validator :: make ( $request -> all (), [             'profile_photo' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'licence_front' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'license_back' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'driving_licence_validity_date' => 'required|date_format:Y-m-d' ,             'insurance_validity_date' => 'required|date_format:Y-m-d' ,             'photo_car_back' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'photo_car_front' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'insurance_front' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,             'insurance_back' => 'image|mimes:jpeg,jpg,png,gif|required|max:10000' ,  

JAVASCRIPT SMALL FUNCTIONALITY

CHECKOUT LIST WITH OUT SELECT DELETE BUTTON CLICK THEN VALIDATION. function checkdel (){      val = confirm ( 'Are you sure want to delete?' );      if ( val ){          var checkedCount = $ ( 'input[class="chskbox"]:checked' ). length ;              if ( checkedCount > 0 )                  return true ;     }     return false ; } SHOW PASSWORD VIEW BUTTON FUNCTIONALITY < form role = "form" method = "POST" action = " {{ route ('pub.change-password') }} " >                         {{ csrf_field () }}                     < div class = "row" >                         < div class = "col-md-6" >                             < div class = "form-group {{ $errors -> has ('old_password') ? ' has-error' : '' }} " >                                 < label > Current Password </ label >                                 <