Posts

Laravel Sentry and UUID
June 17th, 2022
## Update October 10 10:07
Have hit a few issues with this model but still working okay.
To start this trait does some of the work to manage incoming POST data.
~~~

Many to Many Polymorphic Relations from Laravel to Angular and back
June 17th, 2022
This will cover having a polymorphic relationship in Laravel, showing it on a form in Angular and saving it back to Laravel. Overall it is well documented [here](http://laravel.com/docs/eloquent#ma...

Saucelabs PHP Client
June 17th, 2022
It is built off of the php-github-api client seen [here](https://github.com/KnpLabs/php-github-api) by KnpLabs . They made a really nice client that uses Guzzle and an AbstractionAPI to make it eas...

Using VCR for PHP API Testing
June 17th, 2022
Testing that your code works against an API can take up lots of un-needed time. With this [php-vcr](https://github.com/php-vcr/php-vcr) library you can do ONE real request that saves a fixture file...

Quick way to traverse a nested php arrray
June 17th, 2022
The [RecursiveIteratorIterator](http://php.net/manual/en/class.recursiveiteratoriterator.php) makes it super easy to traverse a nested array.
Here is an example though the docs are pretty clear th...

Polymorphic relationship Laravel
June 17th, 2022
This example will show a typical "Attachment" need. The Laravel docs really do cover alot as seen [here](http://laravel.com/docs/eloquent#polymorphic-relations) especially **"Polymorphic Relation T...

CI - GitHub Actions and Laravel (Part 1 of 3)
June 17th, 2022
No Dusk tests? Right, so I might add Dusk for some End2End. The work I do day to day depends on Python Pytest for End2End testing. Since those projects have an embedded QA person, they tend to know...

Get Fixture Put Fixture Helpers for Laravel
June 17th, 2022
I do a lot with fixtures when testing. This means I put files in the `tests/fixtures` folder that represet the JSON of what ever I am testing. For example maybe I hit an
API that returns
```json
{...

Odd Livewire Error(s)
June 17th, 2022
Just keeping track of some nuances to LiveWire
## initialData.fingerprint
The table with rows was not interating. The rows had two columns of for-each loops so
as always you need keys, but I thin...

Laravel Sail and M1 Mac
June 17th, 2022
Some notes to self will add more after time if needed.
## Mac M1
Had a MySQL error:
```
ERROR: no matching manifest for linux/arm64/v8 in the manifest list entries
```
All I had to do was updat...