Author: admin

Laravel Api Request validation

Laravel Api Request validation to get 402 status code. You can use the following code when you validate your REST Api.

Read more

Vee Validate show errors by REST API server messages Laravel + Vue.js

In your Laravel + Vue Application, you have to do two validations to make error-free application 1 Client side validation 2 Server side validation We are using popular Vee Validate Vue.js package for the client-side validation. In this article, I am going to show you how you can do the server-side validation and show the […]

Read more

How to create model with resource-full controller

In Laravel, you can create Model with resorcefull controller easily by using the following command in your terminal If you want to create model with a controller you can use the followng command

If you want to create Resourefull controller you can use the following command

If you need to create model,controller and […]

Read more

Laravel Model Observer

What is Observer? In Laravel, you can listen to events on a Model. For example, when you update the model product, it will fire the event updated. You can listen to these events and write some code to executes when they fire. There are several events like creating, updating, deleting etc. So you can group […]

51 total views, no views today

Read more

JSON request to Laravel RESTFull API end point

If you want to send JSON request to Laravel RESTFull API end point, you can set he header as shown in the following image. We are using POSTman to show he example Set Accept to application/json With above request you can use the following code in your project

Read more

How to get 200 response code from Laravel REST api

If you want to get 200 success message from your REST api built with Laravel, you can use the following code

Read more

Vue – axios how to chain multiple requests

This is how you can chain multiple request when you use the output of the first request to the input of the second request or You need to call the second request when the first request is finsihed

In this example, first you update the vendor details of the product and then again make […]

Read more

Learn everything about export default

Why do you need export You can use export statement to export function, objects or primitive values to other JavaScript code. By looking at the following example you can learn how you can export a function to another js code @your util.js file

@your index.js

Read more

Basic Plugin development with Vue.js

In this tutorial, you can learn how to develop basic plug-in in Vue application It is good to have you have basic knowledge on Vue.js What is Vue plug-in It is very simple to define. An object with install method which has two parameters What you can do with Vue Plugin? Vue plugin enables you […]

Read more

What is Vue.use()

You can use Vue.use() global method to install (or call the puug-in) which you develop in your application. (or you can use to call the NPM install plugin) For example, if you have a plugin developed in your existing application called DataLoader, you can use following code to load that to your Vue instance


Read more