What is method spoofing in Laravel?

method spoofing in Laravel

In this article we will discuss about method spoofing in Laravel. But first of all we will know about HTTP method. HTTP Methods HTTP defines a set of request methods. Through the HTTP request method we can take action on any resource of the server. In other words, the purpose of the HTTP request is … Read more

How to create custom helper function in Laravel?

create custom helper function in Laravel

In this post we will first learn what is helper function in Laravel and then we will learn how to create custom helper function in Laravel. Helper function in Laravel Overview Helper functions in Laravel are PHP functions which are pieces of code that are used in many files of the application. Various helper functions … Read more

How to build layouts using template inheritance in Laravel?

Build layouts using template inheritance in Laravel

What is layout? Generally in web application the same layout is used in different pages. By defining the layout in a single blade template we can use it in the entire application. We will create the layout using “template inheritance”. For that we will follow the following steps. Steps to build layouts using template inheritance … Read more

How to share data with all views in Laravel?

share data with all views in Laravel

Before knowing how to share data to all views in Laravel, let’s know how to share data to a specific view file in Laravel. Share data to a specific view file in Laravel To share data in views we usually pass an array of data from the controller or routes to views in a key-value … Read more