Bond: Modern JS in Laravel Blade
In his talk at Wire:Live talk, Filip Ganyicz explores Bond, a new approach that brings the capabilities of modern JavaScript into your Blade views.
In his talk at Wire:Live talk, Filip Ganyicz explores Bond, a new approach that brings the capabilities of modern JavaScript into your Blade views.
Here's a neat solution by Ryan Chandler
Read more [ryangjchandler.co.uk]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
– myray.app - submitted by Spatie
Read more [myray.app]
– ryangjchandler.co.uk - submitted by Ryan Chandler
Some fun things you can do with Blade directives.
Read more [ryangjchandler.co.uk]
– aaronfrancis.com - submitted by Aaron Francis
Rendering Laravel Blade components in markdown files.
Read more [aaronfrancis.com]
I'm happy to share that we have released our latest package, spatie/laravel-blade-comments.
This package can add comments to your rendered HTML output. For each Blade view that was used to build up the response, it adds start and ending comments.
Yesterday, the Laravel team released the vite-plugin. Going forward, Vite will become the standard build tool for Laravel apps.
One of the cool features of this Vite integration is that you'll get hot reloading by default. Whenever you run Vite with npm dev and modify a JS or CSS file, Vite will automatically recompile the assets and refresh your browser. This way, you won't have to refresh your browser manually after making a change.
Wouldn't it be cool if this automatic refresh would work when we're changing a Blade file?
– tighten.com - submitted by Jamison Valenta
In this post, Marcus explains the fundamentals of Blade components. A great introduction or review, this post walks you through the process of creating an extensible button component that contains the code common between button types, with additional interactivity powered by Alpine.
Read more [tighten.com]
Liam Hammet explores the inner workings of Blade.
You will find all videos in this playlist on YouTube.
– gummibeer.dev - submitted by Tom Witkowski
How to use PHP-doc tags for better autocompletion in Blade views.
Read more [gummibeer.dev]
💡 Advanced @laravelphp tip!
— Pascal Baljet (@pascalbaljet) February 3, 2021
If you're using the $attributes variable in a Blade Component, you're using the ComponentAttributeBag class, which is macroable 😏
I wrote a macro to dynamically toggle classes by accepting an array, just like v-bind:class in Vue.js! #Laravel #PHP pic.twitter.com/Uis7hykv20
Read more [twitter.com]
Out of the box, Highlight.php doesn't support Laravel Blade templates. I'll show you how to register a custom syntax so that you can start highlighting your Blade content.
Read more [ryangjchandler.co.uk]
Nice work by Tom Witkowski.
Read more [gummibeer.dev]
Blade components are a wonderful feature of Laravel. In most examples you can see them being used for small UI elements. Did you know you can use them for layouts as well? Want to see more videos like this one? Head over to the Readable Laravel video series on our website.
Dries Vints was a guest on my stream. He shared his newest project, called Blade UI Kit.
🔥 You can use @laravelphp’s Blade components for layouts too. Way cleaner than extending imho. pic.twitter.com/Ol29sCsOci
— Freek Van der Herten (@freekmurze) April 10, 2020
One of my favourite new features of Laravel 7 are Blade components. The allow you to define custom html tags that are backed by Blade partials. In this blogpost I'd like to show you a couple very handy components.
This blogpost assumes that you already know how you can use Blade components.
– driesvints.com - submitted by Dries Vints
A package by Dries Vints to easily make use of the Heroicons built by Steve Schoger & Adam Wathan in your Laravel Blade views.
Read more [driesvints.com]
TIL: in @laravelphp blade you can pass data up the main layout you are extending #laravel #php pic.twitter.com/IEWYHv0uyE
— Sidrit Trandafili (@strandafili) 23 december 2019
Read more [twitter.com]
From time to time our team needs to create fairly complicated CRUD interfaces from scratch. While this isn't rocket science, there surprisingly aren't that many good resource out there on how to do this. That's why our team dove in and published a couple of packages that can help create modern CRUD…