Reader Stacks

GUIDES

Laravel — Page 2

Laravel tutorials, Eloquent, artisan, auth, APIs, and deployment.

Uploading and Storing Images in Laravel 10 and 11

The image upload API itself hasn't meaningfully changed across recent Laravel versions — what genuinely differs in Laravel 10 and 11 is scaffolding and folder structure, not the store() call itself.

Generating QR Codes in Laravel

A single well-maintained package (endroid/qr-code, wrapped by simple-qrcode) covers this — the actual decisions are output format, error-correction level, and whether to embed a logo.

How to Generate a QR Code in Laravel

A QR code package turns any string — a URL, a ticket ID, WiFi credentials — into a scannable SVG or PNG in a single method call.

How to Convert HTML to PDF in Laravel

Rendering a Blade view to PDF is a matter of passing its rendered HTML to a PDF library like DomPDF — the same view can double as both the web page and the downloadable PDF.

How to Enable CORS in a Laravel or PHP API

A browser blocks cross-origin requests by default — CORS headers on the server are what explicitly permit a specific frontend origin to actually call your API.

How to Run Background Queue Jobs in Laravel

Dispatching a job pushes it onto a queue instead of running it inline — the request returns to the user immediately, while a separate queue worker process actually does the slow work.

How to Create a Custom Facade in Laravel

A facade is a static-looking proxy to an object resolved from the service container — creating your own is three small pieces: the underlying class, the facade class, and (optionally) a binding.