Supervisor error: <class 'xmlrpc.client.Fault'>, <Fault 6: 'SHUTDOWN_STATE'>: file: /usr/lib/python3.8/xmlrpc/client.py line: 655Aug 15, 2023·1 min read
PinnedLaravel Livewire: Private notifications with Echo (pusher.js)In the docs for Livewire there's an example for handling events via Echo but took me a bit to figure out how to use just the basic notification on a User model. Turns out it is really dang simple (thanks Caleb!). In your component that will be the li...Jan 15, 2022·1 min read
Laravel Error: Object of type Illuminate\Console\Scheduling\Event is not callableAnother day, another really fun error that no one but me seems to have ever suffered in production. For me, this error was caused by missing extra parentheses on the scheduled call. $schedule->command('twilio:get')->dailyAt('20:00')(); Stack trace of...Feb 25, 2022·1 min read
Encrypting data with LaravelSince Laravel 8.12 encryption is now a part of the model casts. There's no longer any need for traits to encrypt and decrypt. In Laravel making a field encrypted is as easy as: class User extends Model { public $casts = [ 'critical_inform...Feb 20, 2022·1 min read
How to send quick Google Chat (Gmail) alerts in LaravelSkip the notifications and send alertsFeb 1, 2022·1 min read
How to fix Integrity constraint violation in Laravel chunkById and lazyByIdWhen using either chunkById or lazyById with Laravel's query builder you must pass an additional parameter to avoid the error SQLSTATE[42702]: Ambiguous column: 7 ERROR: column reference "id" is ambiguous. lazyById: User::join('posts', 'posts.user_id...Jan 28, 2022·1 min read
How to use PHPInsights in GitLab?We've covered PHPStan in the last post. This time let's get PHPInsight's working in GitLab alongside PHPStan. Both PHPStan and PHP Insights can both output the results into the same code climate report for UI viewing on a per-file basis. Unlike PHPSt...Jan 19, 2022·2 min read