git stash

Use git stash when you want to record the current state of the working directory and the index, but want to go back to a clean working …


Git Rebasing

Let’s say that I’m going to start working on a new thing. OK. Here we go! $ git checkout develop $ git pull origin develop …

Add “Access-Control-Allow-Origin” to API

The simple answer is to set the Access-Control-Allow-Origin header to localhost or *. Here’s how I usually do it:Create a simple middleware called Cors: Add the following code to app/Http/Middleware/Cors.php: You can …

Whats new in Laravel 6?

Laravel 6.0 Is the New LTS Semantic Versioning Ignition Error Page Improved Authorization Responses Job Middleware Lazy Collections Eloquent Subquery Enhancements Laravel UI