Search
 
SCRIPT & CODE EXAMPLE
 

PHP

validation file type laravel

$request->validate([
  'file' => 'required|mimes:png,jpg,jpeg,csv,txt,xlx,xls,pdf|max:2048'
]);
Comment

laravel validate file type

'image' => 'required|mimes:jpeg'
//or
'image' => 'required|image'
Comment

How to validate a file type in laravel

'image' => 'required|mimes:jpeg'
  //or
'image' => 'required|image'
Comment

PREVIOUS NEXT
Code Example
Php :: how to change laravel port 
Php :: how to add recaptcha to woocommerce register php 
Php :: php create url with query sting from array 
Php :: multiply a string php 
Php :: carbon parse timestamp 
Php :: start server cmd php 
Php :: create foreign key phpmyadmin 
Php :: laravel route resources 
Php :: laravel 8 created at format 
Php :: get the content from post id wordpress 
Php :: laravel make model with migration 
Php :: php regex file extension 
Php :: how to get only decimal value in php 
Php :: carbon months between dates 
Php :: delete record using laravel 
Php :: php heredoc 
Php :: if is alphabet php 
Php :: laravel check if model relation exists 
Php :: laravel query by relationship 
Php :: column of csv to array php 
Php :: php microtime to seconds 
Php :: increase memory limit wordpress 
Php :: var dump php look clear 
Php :: excel extract date from dd mm yyyy laravel blade 
Php :: php pdo update 
Php :: laravel make view command 
Php :: laravel db query 
Php :: skip add to cart for woocommerce 
Php :: how to limit word in php 
Php :: php array map cast to int 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =