How to Customize Laravel Request Validation Response?

In every application, data validation before executing further logic is required. Laravel provides an easy way to implement data or user input validation using its validator methods. Laravel has a special request class concept for validation. Which separate validation logic and actual logic. But sometimes working with Laravel request validation class, we need to return

Learn More

How To Create Custom Blade Directive In Laravel?

Laravel uses a blade templating engine to render views and perform view-level operations using it. The Blade has some in-built directives that help to perform specific operations like checking conditions or handling loop operations. So you don’t need to repeat logic for that particular task. In this tutorial, we will create a custom blade directive

Learn More

Working With Scopes In Laravel

Sometimes you run into a situation when you have to reuse some of the conditions more, with the help of scopes we can easily reuse or create common functionality for particular queries. Laravel scopes provide a way to define model functions that especially run on query methods. In this tutorial, we will show you how

Learn More

How to Check Table Or Column Exists In Laravel

While working on an enterprise-level project, it commonly occurs that we want to create a particular table or column into a table that already exists and that shows an error. In this tutorial, we will see how to check particular table or column exists or not. Typical migration looks like below code: When we run

Learn More