Open in app

Sign In

Write

Sign In

Adam Hopkinson
Adam Hopkinson

49 Followers

Home

About

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
Laravel

3 min read


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).
Labour Party

4 min read

Adam Hopkinson

Adam Hopkinson

49 Followers
Following
  • Dave Schools

    Dave Schools

  • Holly Davis

    Holly Davis

  • Scott Santens

    Scott Santens

  • Hunter Walk

    Hunter Walk

  • Felipe Hoffa

    Felipe Hoffa

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech