Skip to content

Category

Web Application Development

Web application development: choosing a tech stack, React vs Angular, custom web apps for business growth and how AI is changing web development.

How to Optimize Laravel Eloquent for Large Databases

10/29/2026

How to Optimize Laravel Eloquent for Large Databases

Eloquent slow on big tables? A practical laravel eloquent optimization guide: measure queries, fix N+1 with eager loading, select only needed columns, chunk large results and add the right indexes.

By Muhammad Wilayat Shah

Read
Four checks for a Laravel session that expires too soon: confirm the real config with config:show session, make the cookie secure flag, domain and SameSite match the site, use database or redis sessions when there are two or more servers, and keep one APP_KEY everywhere with APP_PREVIOUS_KEYS for rotation

10/29/2026

How to Fix Laravel Session Expired Problems

Teachers on our school system kept landing on the login page after we added a second server. Six real causes of Laravel sessions expiring early, each reproduced on Laravel 13 with the output and the fix.

By Muhammad Wilayat Shah

Read
Four layers that prevent duplicate form submissions in Laravel: disable the button and redirect after POST in the browser, Cache::lock per record for parallel requests, idempotency keys for API retries, and a unique index in the database

10/28/2026

How to Prevent Duplicate Form Submissions in Laravel

A slow button at a hospital reception created 31 double invoices in one day, even with a unique rule. Here is what really stops duplicate submissions in Laravel: locks, unique indexes, idempotency keys and PRG, tested in a lab.

By Muhammad Wilayat Shah

Read
How to Fix Laravel 419 Page Expired Error

10/28/2026

How to Fix Laravel 419 Page Expired Error

Fix the laravel 419 page expired error: resolve CSRF token mismatch, fix session cookies and SESSION_DOMAIN, and handle SPA Axios and long-lived Blade forms.

By Muhammad Wilayat Shah

Read