$this->validate($request,[ 'name' => 'required|unique:categories', 'images' => 'required|mimes:jpeg,bmp,png,jpg'
$this->validate($request, ['file' => 'image|mimes:jpeg,png,jpg,gif,svg|max:2048',]);
Also in PHP:
- create a laravel 7 project
- date to timestamp php
- associative array example
- clear view cache laravel
- Call to undefined function App\Models\str_slug()
- check datatype of variable in php
- artisan migrate single class
- create user laravel seeder
- check if character in string php
- clear cahce config laravel in cpanel
- Str in laravel
- add zeros in front of number php
- curent date and time php
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 40 bytes) in phar:///opt/cpanel/composer/bin/composer/src/Composer/DependencyResolver/RuleSetGenerator.php on line 129
- PHP debug console print
- add days with dates php
- How can I install php7.4 on Ubuntu 18.04?
- changing php version in composer in server
- date funciton
- dateFormat php
- Cannot access protected property Slim\Slim::$mode in
- create a php live chat without no load
- Allowed memory size of bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/Solver.php
- Allowed memory size of 2147483648 bytes exhausted composer install