Author: admin

Vue or React in 2020?

According to the StackOverflow survey, React.js is the popular framework than the Vue.js Look at the google trend When you analyze the trend you can see, all these three frameworks hav flat trend in last 12 months period. According to the graph Vue has taken the lead. But from beginning of 2020, react is leading […]

Read more

How do I write to the console from a Laravel Controller?

When you are debuging Laravel code , you may need to get some output from command window where you run the artisan command Run this code inside your php function and you can see the output in terminal

Read more

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://127.0.0.1:8001/api/categories/?page=undefined. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Error: “Network Error”    createError createError.js:16    handleError xhr.js:83 This happens when I run the Vue app from localhost to fetch the data from Laravel application running on http://127.0.0.1:8001/api To fix the you can use the following steps 1 Install […]

Read more

Install and create Vue project

Install Vue CLI in your machine you can run the following code To create the project run the following code

Read more

SaaS Analytic Dashboard Development

This is in depth article

Read more

Laravel Lifecycle Overview

This is Laravel Life cycle overview for developers. You can get basic understanding when you make a request to Laravel App

Read more

Save JSON object to localStorage

You want to save JSON onbject to localstorage in your browser?. You can use the following code Now you want to get data from the local storage

Read more

Swift – sort custom object array

We will see how we can sort the following array filled with products First we will define the product class Now we will create some products and fill to the array If you want to sort the products according the product price you can use the following code This will sort the array according to […]

Read more

Passing data between View Controllers

Stack Over flow guide Using Delegates

Read more

Swift Passing data back to controller

This is the Storyboad for this example and we going o pass data from VC2 to VC1 We have two View Controllers named VC1 and VC2 and corresponding classes are VC1.swift and VC2.swift Create a segue from button from Go to VC2 to VC2 View Controller. Name its identifier as seguevc2 In VC2.swift First we […]

Read more