->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');
}
Also in PHP:
- abcabc find matching substrings in a string php
- capitalize all letters php
- check if a string is url or not php
- count string char php
- curl php example
- find string contain spacific charactor or not in php
- PHP try catch all exceptions
- catch multiple exceptions php
- 4random numbers php
- database interaction in codeigniter
- "\" strpos
- created at time to number php
- <?php if ( is_home()
- check for a key in array + php
- current server in laravel
- check if string not contains php
- authenticate user with phone laravel
- erreur php
- detecting right click on windows
- Connect to SQL in a php PDO and print the data in it
- console/log in php
- array with files content in a folder
- carbon format date in laravel
- blade get string characters count