Laravel application settings for Load-balancer or Proxy Server

If your laravel application is running behind the Proxy Server or the Load-Balancer then you should follow these settings. Even, if the proxy server or Load-balancer receives https:// requests from global users and your app server receives http:// requests from the proxy or LB then you should follow these steps too. 2. You need to…

After user registration in Laravel 11, a simple way to create an Event Listener

Follow these easy steps to create an Event Listener after user registration in Laravel 11. Create an Event class file php artisan make:event UserCreated Create a Listener class file php artisan make:listener SendWelcomeEmail –event=UserCreated Add following codes in User model file use App\Events\UserCreated; Add the following codes in User class of User model file Add…

Setup screen resolution on deepin 15.11 – The method works on login screen and all user accounts too

1. Open terminal and enter the following command:sudo nano /etc/my-resolution.sh2. Write all the following lines and save the file: #!/bin/bash# My Resolution Settings – 1920×1080 60Hz for Dell monitorxrandr –newmode “Dell” 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsyncxrandr –addmode VGA1 Dellxrandr –output VGA1 –primary –mode Dellexit 03. Make the file executable:…

Git to Bluehost: Uploads web files to the Bluehost shared hosting server from local repository using Git

First of all you need to enable SSH service for your hosting. You can contact bluehost customer service for that. Now let’s go to the main point. Suppose you’ve a website project on your PC named coderoffice and you use git to manage the project. Now you can take the advantage. You can easily update your website…

Setup custom screen resolution on Linux Mint 19.2 and save

cvt 1920 1080 Copy the modeline from “1920×1080 to +vsync xrandr –newmode “1920x1080_60.00”  173.00  1920 2048 2248 2576  1080 1083 1088 1120 -hsync +vsync xrandr –addmode VGA-1 1920x1080_60.00 Save settings: sudo nano ~/.profile Paste above xrandr –newmode and xrandr –addmode full command lines at the bottom of the .profile file and save it.