Reader Stacks

GUIDES

Laravel — Page 3

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

Getting the Current URL in a Laravel Blade File

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.

Creating a Custom Facade in Laravel

A facade is a static-looking proxy to an object resolved from the service container — three pieces (the underlying class, the facade class, and a binding) that all have to line up.

Enabling CORS in a Laravel API

A CORS misconfiguration only ever breaks browser-based cross-origin requests — a tool like Postman or a server-to-server call is entirely unaffected, since CORS is a browser-enforced restriction, not a server-side one.