Reader Stacks

GUIDES

Laravel — Page 7

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

Converting HTML to PDF in Laravel

DomPDF renders using its own internal engine, not a real browser — CSS Grid, Flexbox, and modern layout features are only partially supported, which is exactly why a complex layout can look noticeably different in the generated PDF.

How to Use Bootstrap 5 in a Laravel Project

Bootstrap 5 dropped its jQuery dependency, making it a genuinely clean fit for Laravel's default Vite-based asset pipeline — install via npm, import, and build.

Image Upload With Live Preview in Laravel

The preview itself happens entirely client-side via the FileReader API — the image is only actually sent to the server once the form is submitted, not as the file is selected.

How to Find Your Installed Laravel Version

The version in composer.json is only ever a constraint range, never the exact installed version — composer.lock (or php artisan --version) is what actually reflects the specific version currently installed.

Social Login in Laravel: Google and Facebook via Socialite

Laravel Socialite abstracts every OAuth provider behind the exact same redirect()/user() interface — adding Facebook alongside an existing Google login is mostly a matter of repeating the same three steps with a different driver name.

Clearing Application Cache in Laravel

Laravel caches five different things separately — config, routes, views, events, and application data — and clearing one doesn't touch the others.