Category: Laravel

Laravel Custom Validation Rule

Laravel validations (+ custom validation rule with parameter) video tutorial

If you want to learn about everything you need to know about validations in Laravel, in just one lesson, this tutorial is for you. This tutorial covers almost all the validations commonly applied when building a web application using Laravel. Validations covered include: custom error messages custom validation rules (with parameters) max/min in rule. That…
Read more

Code editor and terminal

Laravel REST API tutorial for beginners – CRUD example

Hi. So, I made a tutorial on how to create REST APIs in Laravel. This tutorial covers all the common HTTP verbs, namely: POST, GET, PUT/PATCH and DELETE. The tutorial is meant for beginners or for someone who doesn’t know how to create REST APIs with Laravel. So, there is no complex or advanced stuff…
Read more

Laravel exception handler

Laravel – customize 404, validation & other exceptions in one place – return a response of your choice

If you want to customise responses for exceptions in Laravel, such as 404, validation exceptions, etc. in one place, this lesson will show you how to do that. When you might need this Assuming you’re building some rest APIs with Laravel and want to return a JSON structure of your own instead of what Laravel…
Read more