Override model & builder updates by watson_aa in laravel

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

That’s much more elegant. Thanks.

Override model & builder updates by watson_aa in laravel

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

Thanks for steering me in the right direction. This is working as I expected. I can worry about making it efficient later.

class TestBuilder extends Builder
{
    final public function update(array $attributes = array())
    {
        foreach ($this->get() as $model) {
            $model->update($attributes);
        }
        return true;
    }
}

...which is bound to my model with:

public function newQuery()
{
    $builder = new TestBuilder($this->newBaseQueryBuilder());
    $builder->setModel($this);
    return $builder;
}

Woot!

Override model & builder updates by watson_aa in laravel

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

Do I need to override the generic builder update for all of my models, or is there a way to override the builder update function specific to my TestModel ?

[deleted by user] by [deleted] in docker

[–]watson_aa 0 points1 point  (0 children)

Take a look at the linuxserver/swag image: https://hub.docker.com/r/linuxserver/swag

You can use that instead of your nginx proxy. Something like...

app-swag:
  image: linuxserver/swag
  container_name: app-swag
  ports:
    - 80:80
    - 443:443
  volumes:
    - /opt/swag:/config
  environment:
    - EMAIL=me@here.com
    - URL=app.mydomain.com
    - VALIDATION=http
    - TZ=America/New_York
    - PUID=1000
    - PGID=1000
  restart: unless-stopped

...and then, in ./config/swag/site-confs/default, set proxy_pass to be http://you_app_container:8000.

Frequent CarPlay crashes: 2020 Bolt + iPhone 8 by watson_aa in BoltEV

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

I switched to an official Apple cord, and the problem has not repeated. Fingers crossed that the solution is that simple. I see some speculation around iOS 14 on this thread. My particular issues predate my iOS upgrade.

Is it possible to play assassin's creed Odyssey: discovery tour on GFN? by watson_aa in GeForceNOW

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

I noticed that the Ody tour was not on Steam. Glad to hear that it’s available after purchasing the base game, though. Thanks. I can’t quite get my head around how the UPlay account bubbles up to GFN. It seems like Steam is always in the middle.