array laravel validation
'image' => 'required|image|mimes:jpeg,png,jpg,gif,svg|max:2048',/**
* Store a new blog post.
*
* @param Request $request
* @return Response
*/
public function store(Request $request)
{
$validatedData = $request->validate([
'title' => 'required|unique:posts|max:255',
'body' => 'required',
]);
// The blog post is valid...
}$validator = Validator::make($request->all(), [
"names" => "required|array|min:3",
"names.*" => "required|string|distinct|min:3",
]);
Also in PHP:
- curlopt_postfields php example
- email configuration for gmail in laravel
- disable errors in php
- add d4 days in php\
- composer global in laravel means
- error_reporting in php.ini file
- convert image to data image php
- exit try php
- date formag php timestamp
- date u php
- console.log() but with php
- execution time in php
- error php code
- ajax php form submit
- code php ajout heure
- complete date fromat in php
- create project laravel 6 using composer
- convert timestamp to readable date laravel
- base64 decode encode php
- 'PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 282624 bytes)
- Symfony\Component\Debug\Exception\FatalThrowableError : Class 'Seeder' not found
- echo date php format
- base64 encode image php
- clear cache routes laravel