Open in app
Home
Notifications
Lists
Stories

Write
Adam Hopkinson
Adam Hopkinson

Home

Jan 30, 2021

Avoid repeating yourself with Laravel Model Scopes

Once you start actually building something with Laravel, it’s easy to find yourself repeatedly typing the same code when you fetch relationships. This article shows you a centralised approach using scopes. Setup Imagine you have models for Blog and Post and a relationship between the two — Blog hasMany Post. A…

Laravel

3 min read

Avoid repeating yourself with Laravel Model Scopes
Avoid repeating yourself with Laravel Model Scopes

Jun 6, 2017

Why I’m Voting Labour In The UK Elections (And I Hope You Will Too).

There is much vitriol and misinformation around the 2017 United Kingdom election. Social media is a self-referential echo chamber and the mainstream media have shown a lack of balance — so here’s my take on it. — So being realistic, only Labour and the Tories have any chance of getting in — so I’ll limit my comments to those. You’ll soon see that I’m intending to vote Labour — regardless, I’ve tried to read a balanced set of articles and question everything.

Labour Party

4 min read

Why I’m Voting Labour In The UK Elections (And I Hope You Will Too).
Why I’m Voting Labour In The UK Elections (And I Hope You Will Too).
Adam Hopkinson

Adam Hopkinson

Following
  • Nick Babich

    Nick Babich

  • vpTech

    vpTech

  • Hunter Walk

    Hunter Walk

  • Connor Leech

    Connor Leech

  • Ferenc Almasi

    Ferenc Almasi

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable