Skip to content
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

Parent BelongsTo searchable does not work #12

Open
drsdre opened this issue May 20, 2019 · 1 comment
Open

Parent BelongsTo searchable does not work #12

drsdre opened this issue May 20, 2019 · 1 comment

Comments

@drsdre
Copy link

drsdre commented May 20, 2019

I'm trying to setup a relationship between a league and a competition_matchday, for it fails when BelongsTo is set as searchable. I'm guessing this is because searchable is not a regular dropdown.

BelongsTo::make( 'League', 'league', League::class )
  ->nullable()
  ->searchable(),
AjaxSelect::make( 'Matchday', 'competition_matchday' )
  ->nullable()
  ->get( '/api/league/{league}/matchdays' )
  ->parent( 'league' ), 
@blackfyre
Copy link

Can confirm this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants