-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query did not execute #26
Comments
did you include the trait:
? |
Hello, Thanks for your reply, Yes, i dit it. use App\Traits\ClienteWithMyPostTrait; class Cliente extends Resource
|
+1 |
any update on this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I was trying to implement this on my project but the query was not execute and i get all result for related resource.
trait ClienteWithMyPostTrait
{
public static function myPostQuery(NovaRequest $request, $query, $model)
{
return $query->where('id', 1);
}
This part never run, i implemented like
CustomRelationshipField::make('My post', 'myPost', Post::class)
Thanks.
The text was updated successfully, but these errors were encountered: