Referencing specific database records in your code
Season 1 continues with a discussion of how to deal with special database records that need to be referenced directly in code.
We've all been there before: you've got a specific vendor that you need to write a custom command for, or a certain category that needs special handling, so you either hard-code the ID or slug and shudder slightly before moving on with your life. In this episode, we imagine a better—perhaps the best, even—way!
![Referencing specific database records in your code](https://img.transistor.fm/05sY2C5gHDx2U5Vwl5EYTy7gz3MmgOQl7m-cW0jgnrY/rs:fill:800:800:1/q:60/aHR0cHM6Ly9pbWct/dXBsb2FkLXByb2R1/Y3Rpb24udHJhbnNp/c3Rvci5mbS9lcGlz/b2RlLzE2MzcyNzYv/MTcwMjA2MDMzNy1h/cnR3b3JrLmpwZw.webp)