Pinned
Chris Morrell
7,461 posts
Come find me on Вӏսеskу — @ cmorrell.com
- Like the idea of UUIDs in #Laravel models, but hate the giant, hyphen-separated strings? I'm about to release a new implementation of Snowflake IDs that give you globally-unique, ordered, numeric IDs. (Same as what Twitter and Discord use.)
- There's so much more that I want to eventually open-source, too. Like check out this beautiful date-picker…
00:00 - Oooh. Just hit a UUID collision.
- How many times a week do you dump a model in #laravel and then have to scroll down to the attributes and expand them? laravel-dumper brings the model attributes to the top of the dd() output for easier debugging.
- Introducing `glhd/linen` — lightweight spreadsheets for Laravel. We've been using this code internally for a while and I finally decided to break it out into a package. It's dead simple, with minimal configuration and a low memory footprint. Check it out…
- And here's the current API. The wizard now supports Laravel-style rules for each step! 🔥
- Alright. I just tagged the first stable pre-release of Laravel Dumper: github.com/glhd/laravel-d… Just `composer require` and instantly get improved `dd()` and `dump()` output for most Laravel core classes (like Models, Query Builders, the Service Container, etc).
00:00 - One of these days I'm going to get around to the 1.0 release of this universal address input component…
00:00 - I find that 90% of the the time, the @laravelphp commands that I write follow the exact same pattern: - Query some data - Perform some operation on each row Internally, we have a trait that simplifies this immensely. I'm working on open-sourcing it right now.
- Imagine a world where you could use `x-rules` in @Alpine_JS with @laravelphp-style validation rules and get browser-native errors… 👨🍳
00:00 - I'm so excited about the release of #Laravel 9. A bunch of folks have outlined the major highlights of this release, so I want to take a second to talk about the few contributions I've made and why I'm excited about them! 👇
- The fact that I can create such a flexible custom @Alpine_JS directive in ~10 mins is just incredible.




![<?php
// Reading files
$sheet = ExcelReader::from('my/sheet.xlsx');
foreach ($sheet as $row) {
// $row is a Collection of data
}
<?php
// Writing files
$query = User::select(['id', 'name', 'email']);
ExcelWriter::for($query)->write('my/sheet.xlsx')
<?php
// Both CSV and Excel support…
ExcelReader::from(...);
CsvReader::from(...);
ExcelWriter::for(...);
CsvWriter::for(...);
// Or automatic by MIME type/extension…
Linen::read('my/sheet.csv');
Linen::write($data, 'my/sheet.xlsx');](/web/20190509160520*/https://medium.com/@ddrogan/libertys-https-pbs.twimg.com/media/GTav7dwWsAAFJ_X.jpg)



![<span
x-typed.speed.100.delay.750="['hello', 'world']"
>](/web/20190509160520*/https://medium.com/@ddrogan/libertys-https-pbs.twimg.com/media/GNABKysW8AA-oGg.jpg)