[HowTo] Change User Model Namespace in Laravel

By default Laravel’s “User” model is place on “App” namespace. To move it to App\Models namespace we have to do the following: Move User.php to App\Models folder Update this path in config/app.php Search for “providers” key and update the path in “model” before : App\User::class, after: App\Models\User::class Generate new class path by using composer dump-autoload … Continue reading “[HowTo] Change User Model Namespace in Laravel”

Lost my previous posts from 2017

WHY THIS POST ? I used to post articles on various topics here and there. Back ago 6-7 months, I forgot to topup my account and kept ignoring the email from my hosting provider that ultimately led to my account being suspended then deleted from the server 🙁 I was occupied with regular tasks and … Continue reading “Lost my previous posts from 2017”

[HowTo] Change theme in vim

This is a walkthrough on how we can change the color theme in vi. Basically Colortheme in vi are placed in ~/.vim/colors folder by default. This path is configurable through vi configurations. For this post, we assume the folder is “~/.vim/colors”. We’ll use 256 color enabled color theme. So you’ll also need to enable 256 … Continue reading “[HowTo] Change theme in vim”

How to keep your forked repositories in sync with the source repository

This blog post aims to answer the following questions. How to contribute to Open Source Projects (Partially)? How to keep forked repositories in sync with the source repository ? How to pull the commits from source repository to the forked repository? I often forked open source repositories found in github and also commit back to … Continue reading “How to keep your forked repositories in sync with the source repository”