[00:00] When defining eloquent relationships, you may provide a separate method with condition. And then if you do user with that method, that where condition would be automatically applied. [00:12] But also, there is a similar trick for creating related objects. The problem with this approach, if you do user feature post create, you can do that, but then you need to provide featured manually, because that condition wouldn't work. [00:26] So did you know there is a function called with attributes? that would do the same wear condition as I showed previously, but also would allow you to do something like this. User feature posts, you provide only the title, and then featured would [00:42] be automatically applied as well. For more Laravel tips and longer tutorials, subscribe to my channel Laravel Daily.