π― Goal Make Google login work using only .env: π 1. Create OAuth Credentials Go to Google Cloud Console Steps: βοΈ Configure Consent Screen Add scopes: β Add Test Users (IMPORTANT) Scroll down β Test Users Click: Add: π Only these users can log in while testing π 2. Create OAuth Client ID Go to:π APIs & Services β Credentials Click: Select: Add Redirect URI: β οΈ Must match Laravel exactly π¦ 3. Put Credentials in .env π 4. Apply Changes π§ͺ Testing vs Production π§ͺ Testing Mode (Default) π Use for: π Publish App (Production) π Use when: π§ Decision Rule β οΈ Common Errors β redirect_uri_mismatch β .env and Google Console donβt match exactly β invalid_client β wrong client ID / secret β This app isnβt verified β user not in Test Users OR app not published β‘ Local vs Production Local: Production: π Add BOTH in Google Console π§ Final Mental Model β TL;DR
Laravel Ward
π‘οΈ Laravel Security Scan Guide (Using Ward) This guide walks you through: Tool used: Ward π¦ 1. Install Go (Golang) π Download Go Go to:https://go.dev/dl/ Download the Windows installer and install normally. β Verify installation Open CMD: Expected output: βοΈ 2. Install Ward Run: π 3. Verify Ward installation Expected:
Laravel Error Logs
Laravel Audit
MySQL Allow IP Address, Linux Allow IP Address
π¬ MySQL Commands π (Temporary) Allow ALL IPs π Remove βallow allβ (%) β Allow Specific IP β Allow Subnet (per building) π Check Allowed IPs π Check Permissions π§ Linux / Server Commands π₯ Allow MySQL Port (ALL β testing only) π Allow Specific Subnet (recommended) π Check Firewall Rules βοΈ Enable Remote MySQL Access Set: π Restart MySQL (only if config changed) π§ͺ Test Connection
MySQL Get All Column Names In A Table
Laravel Email Notification Queue Worker
Laravel Creating A New Project In Composer
π 1. Create New Laravel Project Make sure you have: βοΈ 2. Configure Environment Update .env Create database manually: CREATE DATABASE myapp_db; Then: π¨ 3. Install Tailwind + Alpine + Auth (Breeze) Laravel doesnβt ship with login UI by default anymore. Use Breeze (lightweight, clean). Choose: Blade Now install frontend: π§ What You Just Installed Clean and simple. No Jetstream spaceship complexity. ποΈ 4. Run Migrations This creates: βΆοΈ 5. Run App Visit: http://127.0.0.1:8000 Boom. You now have: π Clean Folder Structure (What Matters) app/ Models/ Http/Controllers/resources/ views/ css/ js/routes/ web.php π Protect Routes Example: β‘ 6. Production Build When ready: π§ Recommended Additions (Professional Setup) Add Role Column Migration: Then: Add Global Layout Edit: resources/views/layouts/app.blade.php Add navbar, sidebar, etc.
Laravel Image Not Allowed Direct Url Viewing
Used built-in Laravel security patterns for private file access: Result: profile images cannot be directly viewed by unauthenticated users, and cannot be accessed by other users even if URL is guessed.
.edu.ph Information Change
https://services.ph.net