Search
 
SCRIPT & CODE EXAMPLE
 

PHP

->store() laravel change name

public function saveFile(Request $request) {
    $md5Name = md5_file($request->file('your_input_name')->getRealPath());
    $guessExtension = $request->file('your_input_name')->guessExtension();
    $file = $request->file('your_input_name')->storeAs('your_path', $md5Name.'.'.$guessExtension  ,'your_disk');
}
Comment

PREVIOUS NEXT
Code Example
Php :: php library to convert html to amp 
Php :: where clause in laravel 
Php :: php get html tags from string 
Php :: laravel db raw count where 
Php :: php localhost:8000 
Php :: Predefined Constants php 
Php :: laravel eloquent get all where in 
Php :: php base convert 
Php :: laravel relationship delete all 
Php :: session_regenerate_id 
Php :: laravel array search blade 
Php :: Laravel route not calling function of controller 
Php :: php file storage 
Php :: laravel validation custom message example 
Php :: multe data on database laravel 
Php :: remove space and line from json in php 
Php :: display php error 
Php :: laravel new line in session flash message 
Php :: Get data from array (from an API) in Laravel 
Php :: Simple 301 redirect 
Php :: codeigniter 3 image upload 
Php :: php to print value if key exists in array 
Php :: laravel migration smallint length 
Php :: Woocommerce Changing the Entry Title of the Custom Endpoint 
Php :: woocommerce function traduccion label 
Php :: REFERRER CODEIGNITER 3 
Php :: unique string faker laravel 
Php :: intellisense in visual studio code for php-oop 
Php :: switch case or case php 
Php :: mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =