Articles

Or more accurately, word dumps.

Accessing Helper Methods in Your Livewire Components

Helper methods can be, well, helpful. Did you know that you can actually write helper methods in your Livewire classes and use them really easily in your Blade views?

Published 6 months ago | Updated 6 months ago

Creating Custom Magic Variables in Alpine.js

We all come across tasks that are repetitive and probably struggle to find ways of making them more re-usable in our Alpine components. Since v2.5 we can register custom magic variables that can help us out with that.

Published 6 months ago | Updated 6 months ago

Replicating `$.slideToggle` with Tailwind CSS & Alpine.js

One of jQuery's most powerful and popular features is the `slide` helpers and lots of people would like to replicate these in Alpine, so let's take a look at how we can do just that.

Published 6 months ago | Updated 6 months ago

Unconventional Laravel: Route groups and `$router`

When registering grouped routes using `Route::group()`, it's normal to register those nested routes using the `Route` facade, but have you ever used the `$router` variable?

Published 7 months ago | Updated 7 months ago

Add Classes to Active Link in Laravel

Adding a class to make the current page "active" in your application's navigation is a simple UI improvement. Let me show you how I typically do this in my apps.

Published 7 months ago | Updated 7 months ago

Manually Refreshing a Livewire Component

Livewire provides a clean API for automatically polling and refreshing a component, but what if you want to manually refresh a component?

Published 8 months ago | Updated 8 months ago

Clearer Time Values with Carbon

How often do you see something like `2 * 24 * 60 * 60` and wonder what that value actually represents and what those magical numbers mean? Don't worry, Carbon's constants are here to help you out.

Published 8 months ago | Updated 8 months ago