Ditto

Ditto

@codingditto.bsky.social

Coding monkey - Laravel

54 followers46 following44 posts

->pluck() is such a useful attribute. It lets you return an array of the selected attributes rather than pulling the whole model and mapping through them. It has cleaned up my code so many times. #laravel

Latest feature in Coffers, my D&D campaign companion app: image uploads for campaigns, characters, shops, and scenes. Small thing I'm proud of — when you swap or delete an image, an Eloquent observer quietly deletes the old S3 file for you. No orphaned files piling up in the bucket. #laravel

Ran into this today. I am working on a project where I need to copy html to the user's clipboard. I couldn't use Alpine's native feature since I needed to specify that the copied text was html. ClipboardItem(['text/html'] : "<div>Stuff</div>") #laravel #livewire #php

Nightwatch is probably going to be my first buy after this Laracon. Anything to ensure that our payment jobs and https request aren’t bugging out without throwing flags. #laracon #laravel

Url params are super easy in Livewire. I was putting off working on this feature since I didn't want to pass the params to the back end and all that jazz. Name the variable, add the property, and bam - done. #laravel #livewire

My data sucks. Make it suck less. I started using Attributes on my models to help clean up my database, creating more consistent entries. It's a clean way of casting you models in and out of the database. #laravel #php

Filament Tip I find myself having some tables stripped and some that I forget to strip on my panels. If you want to be consistently and lazy, set your filament table in you AppServiceProvider to always be stripped. #laravel #php #Filament

Alright, here is something that I took too long to start using -- datasets. I started making datasets that are made with data from production that experienced some type of bug. New bug -> add to dataset. When it passes the tests = Its good forever ... mostly. #Pest #PHP #Laravel

Ran across this issue yesterday -- Huge CSVs. By default, Livewire sets the max size of files in temp to 12MB. I need a lot more space so I published the config files and set a new max. The, boom, it works. #livewire #laravel #PHP

View full thread

Ran across this issue yesterday -- Huge CSVs. By default, Livewire sets the max size of files in temp to 12MB. I need a lot more space so I published the config files and set a new max. The, boom, it works. #livewire #laravel #PHP

I love Filament. Working on a project where I need to let the user download a CSV. What would take weeks only takes hours with Filament. Filament has features for Import, Export, and Database Notifications. #PHP #Laravel #Filament

Laravel Development ❤️ Filament It takes minutes, not days to to develop a fully functional backend panel for my apps. Not only that, but you can turn around and use Filament assets or even whole panels on the front end. Got to use it.

filamentphp.comFilament - Accelerated Laravel development framework: admin panel, form builder, table builder and moreA collection of beautiful full-stack components for Laravel. The perfect starting point for your next app. Using Livewire, Alpine.js and Tailwind CSS.

Might just be posting to find this for myself on my next Laravel project. Don't forget to go to your phpunit.xml file and un-comment the DB_CONNECTION. This way your test don't wipe you database. Ensure you add your uses(RefreshDatabase::class) to your test and your good to go. #laravel #pest #php

One of the great things about Laravel-Tailwind combo is customizing breaking points. I am working on a project that needs to render in smaller iframes. Adding smaller breaking points is a life saver. Added smaller and supper smaller views. #laravel #tailwindcss

You are up to date.