edulazaro

Eduardo

@edulazaro

Instruction at referenced memory could not be read.

7 Posts 74 Views

0 / 255

Pinned

Just released Laractions, a package which allows to create actions and model actions, keeping them in an organised way. Actions can run both synchronously or asynchronously without the need to create additiona jobs.

You can do:

// Syncronous
$user->action('send_email')->run($subject, $content);

// Asyncronous
$user->action('send_email')->dispatch($subject, $content);


github.com/edulazaro/laractions

115

When you define texts in Laravel, you either define the key or the string content, and neither option is perfect.

With the first, it’s hard to know what’s actually there, and with the second, you risk messing up your translation keys by changing even a single character.

So, I’ve just published Laratext, a Laravel package to easily manage and automate translations in your Laravel projects.

✅ Use simple helpers like text('key', 'Default value') or Blade directives like @text('key', 'Default')
✅ Auto-scan your codebase and extract translation keys
✅ Automatically translate missing keys using OpenAI or Google Translate
✅ Easily extend it with your own custom translators

Check it out here 👉
github.com/edulazaro/laratext

77

Just released Laralang, a simple and lightweight localization package for Laravel.

I know what you might be thinking: "Another one?" 😅 There are plenty out there. But after trying several over the years, I found most of them either too complex or requiring significant changes to routes or code. Simple API, minimal configuration, support for Ziggy and near-zero performance impact.

With Laralang, you can easily do:

* route('es.whatever'): Link to whatever route in the es (Spanish) locale.
* route('whatever'): Link to whatever route in the current locale.

github.com/edulazaro/laralang



image

55

New scraping package for Laravel! This solves a bunch of issues I had with Spatie Crawler, Browsershot, and those zombie Chromium instances haunting my server 🧟.

Tons of ideas to add in upcoming releases. Tried to use pure Vibe coding and nearly threw my PC out the window.

github.com/edulazaro/larascraper

99

Just released an updated version of Larakeep. It allows to register Keepers and perform tasks on attributes or run tasks on them, in a similar way to actions. It's a way to keep models and observers more organized.

// Single attribute processing
$user->process('attr')->save();

// Multiple attribute processing
$user->process(['attr', 'search_text'])->save();

// With parameters
$user->processWith('attr', ['arg' => 'value'])->save();

// Custom task
$user->processTask('taskName', 'search_text')->save();

// Custom task with parameters
$user->processTask('taskName', 'search_text', ['arg' => 'value'])->save();


github.com/edulazaro/larakeep

74