[HowTo] Change User Model Namespace in Laravel

Pocket

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”

[Solved] Error executing git commit in phpstorm

Pocket

I thought Git and Phpstorm would work out of the box with minimal configuration. I pointed Git.exe in phpstorm and tried committing a file. To my surprise, I got the following error always. example is taken from web: “Error executing git commit –only -F /private/var/folders/bs/zfry67p51_gflf6hqgzplv2xt80189/T/git-commit-msg-5921808149812071312.txt –author=dsedlacek — web/js/definitions/jquery.d.ts web/js/libs/handlebars-v1.3.0.js web/css/icon….” And after poking around for … Continue reading “[Solved] Error executing git commit in phpstorm”

Walkthrough on remote access to Ubuntu14.04

Pocket

I often access my ubuntu machine remotely and today I will be describing how I setup my machine to access it remotely from anywhere through internet. This is not a step by step guide rather it’s a kind of walkthrough and giving overview on how I knitted each bits and pieces to get the job … Continue reading “Walkthrough on remote access to Ubuntu14.04”

[Solved] How to deploy php app to heroku from windows

Pocket

I am fulltime linux user and parttime windows user. Lately I have started working with windows for some project stuffs. I found windows quite frustating and limited to what linux provided me. Well it’s all personal feelings. I always hated unnecessary installations of extra applications for the same tools which most of the linux distributions … Continue reading “[Solved] How to deploy php app to heroku from windows”