lukeraymonddowning/laravel-template
Laravel Template by Luke Downing offers a clean, class-based way to define and render reusable Blade templates. Encapsulate template data and presentation logic in dedicated objects, making emails, PDFs, reports, and other generated content easier to manage.
composer require lukeraymonddowning/laravel-template:^2.0. v2.0.0 targets Laravel 10, so confirm php -v (8.1+) and composer show laravel/framework before upgrading an existing app.tests/ directory first — for a small utility package the test suite is the most accurate documentation of the supported API surface and naming conventions.php artisan vendor:publish --provider="LukeRaymondDowning\Template\TemplateServiceProvider" (verify the exact provider/config tag in the README). Publishing early avoids surprises where defaults change between minor releases.data() for inputs, a single render path for output. Controllers should not build markup; they pass a template instance (or the data to construct one) to the view.$showFooter. Composition keeps each class small and testable.Alert::danger($message)) that wrap the constructor so call sites stay declarative and variant names live in one place.assertSee, assertSeeInOrder) rather than asserting on internal properties. For templates with conditional branches, write one test per branch — that's where regressions hide.composer why-not lukeraymonddowning/laravel-template ^2.0 to find the conflicting constraint (often laravel/framework, PHP, or a test tool), update composer.json, then composer update --with-all-dependencies. Run the full test suite plus php artisan view:clear afterwards — stale compiled views are a classic false-negative after dependency bumps.^2.0 rather than 2.0.*; do not use * on a package that is small enough to change shape between majors.php artisan config:cache will silently ignore runtime config() mutations; if template behaviour is configurable, set it in config/*.php or .env, then re-cache.composer dump-autoload before debugging why a class "doesn't exist" — classmap/PSR-4 staleness is the most common false alarm.dd($template->render()) in a tinker session) rather than inspecting through the view layer; escaping, whitespace, and attribute-order issues are invisible in the browser.How can I help you explore Laravel packages today?