https://twill.io logo
Its doable for sure, in your Controller you can ov...
# ❓questions
k
Its doable for sure, in your Controller you can override parent method
formData
and that model/resolved query will be availble in the forms.
Copy code
php
    /*
     * Add anything you would like to have available in your module's form view
     * For example, relationship lists for multiselect form fields
     */
    protected function formData($request)
    {
        // Here make your query
        return [
            'model' => Model::getUserEmail(),
        ];
    }
And in your form.blade.php you can access it by variable
$model
.