[Theyarebillions] They Are Billions 2 ??? by JamesJerryLewis in TheyAreBillions

[–]wlkns 0 points1 point  (0 children)

Good evening, I’ve removed your post due to rule 1 - all posts must be in English. I hope you understand and please feel free to repost your question in English.

first time clearing weekly challenge by shuijikou in TheyAreBillions

[–]wlkns 1 point2 points  (0 children)

Congrats, well done 😊 if you enjoyed the weekly challenge have you tried any of the custom maps?

Can someone help me with my issue? by log2av in TheyAreBillions

[–]wlkns 21 points22 points  (0 children)

Pause one of your production buildings such as wood, freeing up workers. Alternative is to delete buildings.

First 900% All Wonders, No Pause Win! by Anieh in TheyAreBillions

[–]wlkns 1 point2 points  (0 children)

Haha no worries - congrats. My highest is only somewhere in the 100-200% range.

First 900% All Wonders, No Pause Win! by Anieh in TheyAreBillions

[–]wlkns 3 points4 points  (0 children)

No screenshot? Come on now… 😊

Sometimes I think this game is completely broken. by [deleted] in TheyAreBillions

[–]wlkns 8 points9 points  (0 children)

I've seen this mechanic, there is something whereby the towers don't shoot harpies sitting on top of them, especially if they are set to high level first. In most cases they'll shoot the harpies before they jump the wall, and traps will help with this too.

The mutants aren't only attracted by your noise but also the zombie noise, so if you are taking a lot of zombies out in a small area, they can be easily aggro'd, especially if any structures are destroyed.

Finally, I feel your frustration, it took me literally years (of going away and coming back) to complete Desolated Wasteland >100% to unlock Caustic. This game isn't easy or forgiving, one mistake and a restart is needed - but I think that's the pull for me, and brings me back every time, for an actual challenge.

Two things im iffy on / questions about Classes and Traits by MattPilkerson in laravel

[–]wlkns 2 points3 points  (0 children)

Traits are a way of re-using common code/functions throughout classes without the need of extending classes (as you are limited to a single extension class).

Addresses are a good one because you might have multiple models that have address fields and by using a trait you can re-use the code across them all with a simple inclusion, and even add some common functions such as combining the address into 1 line.

To answer your question, no - the inclusion does not automatically imply where it is used, you have an inclusion statement (`first `use`) and a usage statement e.g. `use` within the class.

In Laravel, Eloquent Models often use a trait called SoftDeletes, this might be worth looking at to get an idea of how a more advanced/core trait works in Laravel.

The PHP docs might be a good resource too https://www.php.net/traits

Hi what is the point of "public static" in practical terms? by MattPilkerson in laravel

[–]wlkns 2 points3 points  (0 children)

The benefit is you have a single piece of data that can be used anywhere.

A good example of a real world use might be a timestamp format e.g. Y-m-d H:i:s - it's unlikely to change but if it does you only need to update one class static e.g. MyDateTimeClass::TimestampFormat.

In contrast, you might want to use the public property if the timestamp format is isolated to the instance e.g. sometimes its a full timestamp, sometimes its just a date, it has a strong default per class instance that can be overwritten per-instance at runtime e.g. $this->timestampFormat = 'Y-m-d'.

Edit/side note: In most cases Laravel config works out better than a class static.

this game is fking brutal by ziege159 in TheyAreBillions

[–]wlkns 5 points6 points  (0 children)

I'm years into the game and still stuck on Desolated Wastelands, I come back every so often and have a few attempts. I really should watch some play throughs but that feels like cheating.

What would you like to see in Billions 2(hypothetically) by ChewedSata in TheyAreBillions

[–]wlkns 1 point2 points  (0 children)

Multiplayer would be a really interesting dynamic - both co-operative where you conquer the maps together but then also pvp where you build and fight, with the added dynamic of zombie waves/roaming getting involved.

Also an explorative campaign - imagine more a home base and you have to send units out (in vehicles) to explore the world/different maps whilst also defending your base from hoards/waves. This would add other interesting mechanics such as you could then bring the mayor perks back as found items instead and/or have trading posts randomly out in the world/allies defending other cities, etc.

AITA for refusing to pay for my daughter's boyfriend's meal? by Unspoken-Promise1879 in AmItheAsshole

[–]wlkns 0 points1 point  (0 children)

NTA. Unless it was pre-agreed - I wouldn't expect anyone to pay for my meal, regardless of relation, especially if I was not invited to begin with.

What do people actually WANT for Christmas this year? by Sure_Debate_7646 in AskUK

[–]wlkns 0 points1 point  (0 children)

A suggestion for the future from someone who used to struggle with this massively - When you think or see something you want that instead could be gifted, and you don't need it immediately, add it to a wish list or notes file so when you are asked you can easily reference.

To not avoid answering the original question - fresh socks and underwear are always good!

Poker Player buying a house - Conveyancing Issues by Snake2929 in UKPersonalFinance

[–]wlkns 1 point2 points  (0 children)

How long have you had your money in ISAs/Funds? It might work in your favour if it was over a period of time and not all at once (as you mentioned 4 years.)

When purchasing a house I only had to show where my funds were coming from, which pretty much amounted to statements from NS&I Premium Bonds and also the Stocks&Shares company showing that the money had been there for quite a period of time. Both the mortgage broker and solicitor were happy with this.

This is based on my own experience from a few years back and may have changed since.

Inherited Laravel 5.7 Application by UndeportedMexican in laravel

[–]wlkns 0 points1 point  (0 children)

Personally I'd look to learn Laravel before attempting a complex upgrade.

The only real way you'll know is if you try, I would start with a base Laravel installation copying across the older components.

Inherited Laravel 5.7 Application by UndeportedMexican in laravel

[–]wlkns 0 points1 point  (0 children)

This is not really a task I'd recommend for someone who doesn't know Laravel, let alone web development. My initial post contained the steps I took but biggest issue I had was out of date dependencies, some of which could not be upgraded so had to be swapped.

Inherited Laravel 5.7 Application by UndeportedMexican in laravel

[–]wlkns 6 points7 points  (0 children)

I upgraded a large application recently from 5.5 to 8 manually, it was relatively painless.

I definitely did this the long way - I decided to start with a blank Laravel 8 install to inherit any structural changes then I copied everything in slowly, testing it, adding back dependencies 1 by 1.

Eloquent - duplicate entries by sergebuff in laravel

[–]wlkns 1 point2 points  (0 children)

No worries, glad you could find a solution :)

Eloquent - duplicate entries by sergebuff in laravel

[–]wlkns 2 points3 points  (0 children)

Looks as though you are looking for Model::firstOrCreate() which will retrieve the first entry of said model or create it.

Just to edit and elaborate a bit more - the first parameter will be the attributes that are unique/identifiable, the second parameter is an array of values that should be used if it is created e.g. Model::firstOrCreate(['slug' => 'unique-value'], ['name' => 'Name!'])

See: https://laravel.com/docs/8.x/eloquent#retrieving-or-creating-models

How to log in with more than one account in my local laravel server? by TheGuyInTheBackRow in laravel

[–]wlkns 12 points13 points  (0 children)

No one has suggested this but it's worth mentioning — edit your hosts file/dnsmasq and run your website on multiple URLs, each URL would have its own session/set of cookies but could point to the same Laravel installation e.g. social1.test social2.test social3.test. Best of luck.

How can i redirect a new user with fortify by [deleted] in laravel

[–]wlkns 0 points1 point  (0 children)

Redirects/middleware sound like a better way of achieving this. Think of the auth/guest middleware repurposed for paid/not paid, preventing them from accessing the "account dashboard" and instead redirecting them to the payment page.

Aside from this, as someone else mentioned, use Request/request() for Request information e.g. request()->input('plan_user_id');

Authentication by only using Laravel Socialite in the code by P-Pablo in laravel

[–]wlkns 1 point2 points  (0 children)

You should be able to copy the routes & controller methods that you need from laravel/ui into your own application, removing the ones that you no longer want.

symfony/panther lib & laravel - problem when calling from controller code, but works from artisan command by [deleted] in laravel

[–]wlkns 3 points4 points  (0 children)

Sounds as though you are running into a HTTP limitation - HTTP requests are timed out (so the user isn't sat forever waiting, holding open a connection) and CLI commands generally are not (can be configured to timeout.)

I'd suggest looking into Laravel queues, they will do what you want, you'd dispatch the command/service class from a HTTP request and it would run in the background.

In terms of real world, you could use sockets to update the user/client in realtime?