This is a laravel coding test for the role of backend developer, this laravel test takes some JSON payload through API request and run some custom validation on the payload
{
"first_name": {
"value": "John",
"rules": "alpha|required"
},
"last_name": {
"value": "Doe",
"rules": "alpha|required"
},
"email": {
"value": "Doe",
"rules": "email"
},
"phone": {
"value": "08175020329",
"rules": "number"
}
}
- PHP v8.1
- Git
- composer
- POSTMAN
- Run
git clone [email protected]:OfficialOzioma/my-laravel-test.git
- Run
cd my-laravel-test
- Run
composer install
- Run
php artisan serve
- Send a POST request to
http://127.0.0.1:8000/api/user
on the POSTMAN
The Laravel framework is open-sourced software licensed under the MIT license.