Author: Justin

This post i will show you , get user location details using his IP. Here i will use Maxmind. Which is best among all others. Every other package is also using Maxmind. Step 1. Sign Up to Maxmind. Step 2. Download Database from Maxmind. Step 3. Install Package through Composer. Step 4. Setup the Maxmind in Laravel Project. Step 5. Create Controller and get all users location. Step 1. Sign Up to Maxmind: Visit this link and register with your email. https://www.maxmind.com/en/accounts/522958/geoip/downloads Step 2. Download Database from Maxmind: Scroll down and download as like below image. …

Read More

Hello Developers, It is most important to know how to add custom error page in our project. It’s most important when we are working in mind set of good SEO score. In laravel9, if we want to set custom ERROR page that is much more simple to older version of laravel. We will do this is steps. Step 1. Run a console command Open terminal or Command and if you are using VS Code open and type below code. $ php artisan vendor:publish –tag=laravel-errors Step 2. Update View File You will see a new directory is added inside resources/views/…

Read More

Hi, In this post i will show you how to install Python on Ubuntu22.04 and Set the Programming environment. I will also run a program and show the Output. Hope you already aware about the Python. Follow the below command to install Python. Update local packages $ sudo apt update upgrade the packages of your machine $ sudo apt -y upgrade It might be prompt for your confirmation , Hit Y and press Enter. $ python3 -V As you all know python is already installed and give you a output like below Python X.XX.X+ Now for the Programming we need to…

Read More

Hello Developers, In this post i will guide you how to install PHP on Ubuntu 22.04, Here we will install latest php8.1. I will also guide you how to install other older php on Ubuntu 22.04. Get Ready: Login to Terminal with Root user access. $ sudo apt update && sudo apt upgrade When ever prompted for your permission press Y and hit enter. Install PHP on Ubuntu 22.04 Step 1. Install some dependency which are required for Installation. $ sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https Step 2. Adding the Ondrej PPA to our system, which have all versions…

Read More

Hello, This is post i will install Apache PHP and Mysql on Ubuntu, You can also install Ngnix , PHP and Mysql. Both are same with some differences- Difference between Apache and Nginx Apache Nginx Apache is an open source Nginx is also Open Source Apache can be installed on Unix, Linux, Windows and Solaris platforms. Nginx can be installed on Unix like systems, and does not support Windows. Apache was developed by Apache group, released on 25 March 1999. Nginx was developed by Nginx.inc, released on 4 october 2004. Apache is designed for web server. Nginx designed for proxy…

Read More

Java- Java and JVM both are required for running multiple software like Tomcat, Jetty, Glassfish and many more. In this post i will install JRE and JDK using apt. You should know our Ubuntu 20.04 comes with Open JDK 11, which is an open-source variant of the JRE and JDK. Install the JRE/JDK please update the package index first $ sudo apt update $ sudo apt install default-jre this open JRE will allow you to run almost all Java software. $ java -version You can check and verify this. Now you think what about the JDK to compile and…

Read More
Git

Hello Developers , Today i will guide about GitHub. I will list some popular command which are generally used. Git Commands Command Description git init Initialize Git git clone ssh://[email protected]/[username]/[repository-name].git Clone/Copy remote repository git status Check Status it will also show what file and changes git add [file-name.txt] Add file to repository git add -A Add all new and changed files to the staging area git commit -m “[commit message]” Commit to repository git rm -r [file-name.txt] Remove a file (or folder) git push origin [branch name] Push a branch to your remote repository git pull Update local repository to…

Read More

Hello Developers, In this post i will show you “How we can deploy a Laravel app on AWS”. This post will covers: AWS Setup Install PHP 8 and its extension, Ngnix Project deployment Domain Mapping Step 1. AWS Setup Before We Begin I assumed that you have aws account. if not then please register first. A. Login to your AWS console. B. On top search EC2 . C. EC2 Dashboard will appear. D. Left Side menu there is Instances click on that. E. A New window will open , click on Launch instances button at right top. F.…

Read More
PHP

Hello Developers, Today in this post i will show you how we can get ready a server with Ngnix, MySQL and PHP(We will install PHP8.1 which is latest.) i am running Ubuntu 22.04 Linux system with sudo (or root) privileged access, You should also run with root privilege. Now, Open terminal and start following below steps. Step 1 . Install Ngnix. $ sudo apt update && sudo apt upgrade our system is updated now we will install ngnix. $ sudo apt install nginx Ngnix is installed, Now we will configure firewall , we will allow port 80 and port 443…

Read More

Hello all, Now i will show you how we can use datatable in Laravel 9 project. Most important is i will use Deferred loading data. You can read about its from the URL https://datatables.net/examples/server_side/defer_loading.html. Step 1. Install Laravel 9. Step 2. Connect with your database. Step 3. Insert some data in your table. You can use seeder or anything which you want to insert data in table. Step 4. Connect Datatable with CDN and configure the Blade file. https://cdn.datatables.net/1.11.5/css/jquery.dataTables.min.css https://cdn.datatables.net/1.11.5/js/jquery.dataTables.min.js widget_list.blade.php <x-admin_header></x-admin_header> <link href=”https://gitcdn.github.io/bootstrap-toggle/2.2.2/css/bootstrap2-toggle.min.css” rel=”stylesheet”> <link rel=”stylesheet” type=”text/css” href=”{{$_ENV[‘APP_URL’]}}assets/date-picker/DateTimePicker.css” /> <!– Main Content –> <div id=”content”> <!– Topbar –> <nav…

Read More