Closed Anahkiasen closed 6 years ago
Correct, you would need bind your model with a closure to do this. There was discussion about adding something like this but it was decided to keep it simple.
Correct, you would need bind your model with a closure to do this
What do you mean? The @ syntax works for route bindings too, in my example there would be a findBySlug method on the model
+1 This would be very useful.
@tshafer Any update on this? You very rudely closed my PR without giving any comment or indication as to why it was unacceptable and ignored my request for more information. Let's work to find a reasonable solution to this so that I do not have to continue to maintain a separate fork.
Example:
Translating to
Currently if you don't use the default
find
method, you can't use the annotation.