Home
Muhammad Davi
Cancel

Handling a Git Pull Request with Merge Conflict

This tutorial get from Akshay Ranganath’s Blogs. When working with Git, the relatively complex tasks are issuing a pull request and then merging with conflicts. Due to the prevalence of UIs, pull ...

Cronjob with Laravel Task Scheduling

Create a new command Task Scheduling php artisan make:command UpdatePeriod --command=update:period Then make change in the file app/Console/Commands/UpdatePeriod.php: <?php namespace App\Cons...

Add new columns as foreign key to existing table in Laravel

For example, we have a table called customers and we want to add a new column called user_id as foreign key to the users table. Here is how to do it. Create a migration file php artisan mak...

Connecting to GitHub with SSH

This tutorial get from Chairat Onyaem (Par) Blog. Here is the quick guide to push/pull GitHub repository via SSH connection based on the instructions on GitHub Help. Open Git Bash Generate a...

How to Change the PHP Version in Laradock

This tutorial get from Cyril de Wit Blog. I’ve recently switched to Laradock as my primary local development setup for Laravel. It’s a full PHP development environment based on Docker. It took me ...

Display code in LaTeX

This tutorial get from Dr. Jörg Lenhard Blog. In my master thesis, I have quite a number of code listings. To make them easy to read and understand, I was looking for nice way for formatting and c...