[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”

[Solved] Error executing git commit in phpstorm

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”

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

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”

[Solved] Codeigniter session expires frequently

I was working in a Codeigniter project and when I hit refresh button (F5) continuously, My application session was expiring frequently. I googled for a while and found the simple solution. A solution is to increase the amount of time for the session_time_to_update in codeigniter config. Since I won’t be updating session frequently. I am … Continue reading “[Solved] Codeigniter session expires frequently”