Skip to content

Conversation

cbl
Copy link
Member

@cbl cbl commented Aug 12, 2021

This pr adds the allowLinking method to the relation field. It can be used to hide/show the button to link relationship models. This is useful when a create form is added and the user can only create new models.

$form
    ->relation('articles')
    ->create(function($form) { ... })
    ->allowLinking();

Bildschirmfoto 2021-08-12 um 15 31 18

cbl and others added 2 commits August 12, 2021 15:28
Co-authored-by: aw-ci-bot <bot@aw-studio.de>
@cbl cbl requested a review from jannescb August 12, 2021 13:31
@jannescb jannescb merged commit 0500af0 into 3.x Aug 17, 2021
@cbl cbl deleted the feat/allow-linking branch August 30, 2021 09:50
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

Successfully merging this pull request may close these issues.

2 participants