Skip to content

Instantly share code, notes, and snippets.

View imrankabir02's full-sized avatar
🎯
Focusing

Mridha Imran Kabir imrankabir02

🎯
Focusing
View GitHub Profile
@imrankabir02
imrankabir02 / geospatial-queries-laravel.md
Created February 25, 2025 05:21
Detailed Documentation: Implementing Geospatial Queries in Laravel

This document provides a comprehensive guide to implementing geospatial queries in Laravel applications. It covers setting up your database, installing necessary packages, defining spatial data in your models, and performing various types of geospatial queries using Laravel's Eloquent ORM and query builder.

Table of Contents:

  1. Introduction to Geospatial Queries in Laravel
  2. Prerequisites
  3. Step 1: Setting up Your Database for Spatial Support
    • 3.1. PostgreSQL with PostGIS Extension (Recommended)
    • 3.2. MySQL (5.6+)
  4. Step 2: Configuring Laravel Database Connection
@imrankabir02
imrankabir02 / nginx-setup-guide.md
Created February 23, 2025 05:49
Step-by-step guide to setting up an Nginx server

Step 1: Update Your Server Packages

Before installing any software, update your server’s package list:

sudo apt update && sudo apt upgrade -y

Step 2: Install Nginx

To install Nginx, run: