Loading...

Blog

Laravel- Call function of a Model in a blade file

You have a category.blade.php file and you want to call a function name someFunc() inside the Category model Inside your category.blade.php you can call the function {{$model->someFunc()}}

Read more

Laravel like in Eloquent

If you want to run query with Like statement using Eloquent you can follow the following example

Read more

Drag and Drop

Drag and drop with Vanila Js https://alligator.io/js/drag-and-drop-vanilla-js Drag and Drop starting tutorial. This is good starting point if you are a beginner for Drab ad Drop in browser window

Read more

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

Laravel 5 – Remove public from URL

When you install Laravel in your server you will get URL like this to list your customers http://yourdomain.com/public/customers I need somethig like this http://yourdomain.com/customers This is the solution. You have to do two things to remove “public/index.php” from the URL 1 Rename server.php in your Laravel root folder to index.php 2 Copy the .htaccess file […]

Read more