Skip to content
Discussion options

You must be logged in to vote

You can try:

Currency::make('Monthly Price')
    ->tap(function ($field) {
        $price = $this->prices()->monthly()->first();

        $field->resolveUsing(function () use ($price) {
            return $price->amount;
        })->currency($price->currency);
    })->exceptOnForms(),

Replies: 1 comment 10 replies

Comment options

You must be logged in to vote
10 replies
@crynobone
Comment options

@chimit
Comment options

@juse-less
Comment options

@chimit
Comment options

@juse-less
Comment options

Answer selected by crynobone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants