Skip to main content

Posts

Showing posts with the label Debugging

How to Set Up & Use Laravel Telescope

How to Set Up & Use Laravel Telescope Laravel Telescope is a powerful debugging and monitoring tool built by the Laravel team. It provides detailed insights into your application’s requests, exceptions, database queries, jobs, mail, notifications, cache, and more—all in an elegant dashboard. 🚀 What is Laravel Telescope? Laravel Telescope acts as a “developer’s black box,” recording everything that happens within your Laravel app. It’s especially useful during development and staging to track performance issues, failed jobs, or unexpected behavior. 🧩 Step 1: Install Telescope Run the following Composer command in your Laravel project directory: composer require laravel/telescope --dev The --dev flag ensures Telescope is only installed in your local development environment. ⚙️ Step 2: Publish Telescope Assets Once the package is installed, publish the Telescope service provider and assets: php artisan tel...

How to Use Ngrok for Your Local Project

How to Use Ngrok for Your Local Project When you're developing a project locally, sometimes you need to expose it to the outside world — for testing webhooks (like Stripe, RevenueCat, Razorpay), sharing work with clients or teammates, or testing mobile apps. That’s where Ngrok becomes incredibly useful. 🔍 What is Ngrok? Ngrok is a tool that creates a secure tunnel to your localhost. It provides a public URL that maps to your local web server. It's perfect for testing APIs, webhooks, or sharing local work without deploying it. 🛠️ How to Install Ngrok Download it from the official website: ngrok.com/download # For Linux/macOS: unzip ngrok-stable-linux-amd64.zip mv ngrok /usr/local/bin # For Windows: # Unzip and run ngrok.exe from CMD or add it to your PATH 🚀 How to Use Ngrok with Your Project 1. Start Your Local Server For example, if you're running Laravel or Node.js on port 8000 : php artisan serve # O...