Changing the primary key id of a Laravel Model

black and gray laptop computer

I once read an article about changing the primary key column id of to the name of your model. So if database was named “items” , your primary id shouldn’t just be named “id” but “item_id”. Building things from scratch, this came in handy. Especially when debugging and joining tables. When you saw an error like “ambiguous name column” and you joined 3 tables, you needed to specify each table name with it’s id. And that’s just one example.

Continue reading “Changing the primary key id of a Laravel Model”

In one day learning you’ll pay more taxes and your country is in huge debt

calculator placed over stack of usa dollars

We knew that after the elections things would change and a lot of measures would be taken to help stabilize our country, but man I did not expect the numbers. Or should I rather say, I knew they were big (that’s what she said), but when you actually hear and see it, it becomes too real.

Continue reading “In one day learning you’ll pay more taxes and your country is in huge debt”