Quantcast
Channel: exception – SitePoint
Browsing latest articles
Browse All 4 View Live

Data Validation in Laravel: The Right Way

If an app was a world then data would be its currency. Every app, no matter what its purpose, deals in data. And almost every type of app works with user input, which means it expects some data from...

View Article



Data Validation in Laravel: The Right Way – Custom Validators

In the previous part we learned how to validate data in Laravel using its in-built data validation package and how to abstract out our data validation to entity specific services to make the code...

View Article

Image may be NSFW.
Clik here to view.

More Tips for Defensive Programming in PHP

The general definition of defensive programming (as seen in Part 1, an overview piece on Defensive Programming in PHP) being used here is thus: Defensive programming, simply put, is programming with...

View Article

Image may be NSFW.
Clik here to view.

A Crash Course of Changes to Exception Handling in PHP 7

Exception handling saves your code in the most unusual circumstances. PHP 7 has introduced two new classes that assist a developer in handling errors with ease, and that's what we'll look at in this...

View Article
Browsing latest articles
Browse All 4 View Live




Latest Images