Posted On: Apr 19, 2024
Validations in laravel are used to validate user-inputted data on the server.You can use Validator class to validate data in Laravel
Example
$validator = Validator::make( [ 'name' => 'Anzum', 'password' => 'Anzumpassword', 'email' => 'Anzum@example.com' ], [ 'name' => 'required', 'password' => 'required|min:8', 'email' => 'required|email|unique:users' ] );
Never Miss an Articles from us.
Laravel is a free open source "PHP framework" based on the MVC design pattern. It is created by Taylor Otwell...
How to install laravel via composer ?..