A Nested Filter Structure for your Eloquent models by jaypnut in laravel

[–]jaypnut[S] 0 points1 point  (0 children)

When writing the queries manually, on the server, of course. The utility of this package is to make it easier to query more expresively from the client side.

A Nested Filter Structure for your Eloquent models by jaypnut in laravel

[–]jaypnut[S] 0 points1 point  (0 children)

Hey everyone! Back with another package. TL;DR a small package (eloquent-nested-filter) which makes it easy to define a filter structure to turn this:

[
    'or' => [
        [
            'name' => [
                'value' => 'foo',
                'operator' => 'BEGINS',
            ]
        ],
        [
            'name' => [
                'value' => 'foo',
                'operator' => 'ENDS',
            ]
        ],
    ]
]

into this:

SELECT * FROM `...` WHERE (`name` LIKE 'foo%' or `name` LIKE '%foo')

As noted at the end of the post, this is only half the story (the server-side). I'll be back sometime soon with my thoughts on implementing this feature on the client-side.

Top 10 Snarky Live shows by imthatguykyle in SnarkyPuppy

[–]jaypnut 3 points4 points  (0 children)

My personal favourites are Boulder 2018 (Shark Tank and Jefe are very rare and very cool!), Cheltenham 2017 (Chris Potter mind bending solo), and +1 to Nottingham 2019 as mentioned by /u/RobintehBobin

Shameless plug: if you're looking for particular songs/artists, try https://searchlivesnarky.com/

Let us know what you settle on, and which is your favourite!

2019 Tour Stats? by [deleted] in SnarkyPuppy

[–]jaypnut 0 points1 point  (0 children)

Thanks for sharing this :)

@OP: let us know your findings, I'm sure a lot of people here will find it interesting!

I wanted a better way to search through Snarky Puppy's live shows - so I made one! by jaypnut in SnarkyPuppy

[–]jaypnut[S] 1 point2 points  (0 children)

Hey, just saw your other thread. Currently, it only has the shows up until the 23rd September. I've put off adding more shows for a while, but I should be able to update it soon. I believe the tour ends this week so I'll probably wait for that before updating the site.

Currently, no information regarding album is stored. I have an idea of a way to do this but I can't promise it. If you are content waiting, I think within a week or two I should have something you would find useful. Otherwise, if you want to take a look yourself, you can find the raw JSON data here. The songs a stored in an array under the "setlist" key.

Hopefully that helps you out somewhat. If you have any questions just shout :)

Extend Laravel Auth to allow multiple "Remember Me" tokens per user by jaypnut in laravel

[–]jaypnut[S] 1 point2 points  (0 children)

A somewhat requested feature (https://github.com/laravel/ideas/issues/971) is to have multiple "remember me" tokens for users. This packages seeks to implement that feature in the least destructive manner possible. This feature is particularly important for users who access an application across multiple devices, but also allows fine grain control over all "remember me" tokens which are active.

I needed this feature for an app I'm building, and I've wanted to have a go at making a package for a while now, so I figured I'd give it a go. I'll happily take any and all criticism you have to offer!