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.
GUIDES
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.
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.
Beyond storing JSON, Eloquent's whereJsonContains() and arrow-path syntax let you actually filter and search inside that structured data at the database level.
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.
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.
toSql(), getBindings(), and DB::listen() — the difference between seeing the query shape and seeing the actual query that ran, bindings included.
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.
{!! !!} deliberately skips Blade's automatic HTML escaping — the right choice for trusted, pre-sanitized HTML, and an XSS vulnerability waiting to happen for anything containing raw user input.
A service marked providedIn: 'root' is Angular's real equivalent of a global variable — a genuine singleton shared across the whole app, unlike a plain module-level constant, which every importer gets its own independent copy of.
navigator.userAgent is plain browser JavaScript, not an Angular API — genuinely useful for a quick check, but it's a notoriously unreliable string to parse for anything beyond the broadest categories.
url()->current(), request()->fullUrl(), and route()->currentRouteName() — the difference between the URL, the route name, and the query string, and when each one is the right check.
count(), isEmpty(), isNotEmpty(), and the N+1-query mistake people make trying to "optimize" an empty check on an Eloquent relationship.