Skip to content
Discussion options

You must be logged in to vote

Hello @jorgetwgroup
I've been in touch with someone who created an adapted version of the package. So I'm going to use that.

About the problem I was facing, I've managed to create a custom column thanks to ChatGPT.

Here is the result if it can help someone :

$this->crud->addColumn([
            'name' => 'relationshipName',
            'label' => 'My table',
            'tab' => '2 - My tab',
            'type' => 'custom_table',
            'value' => function ($entry) {
                // Get the job relationship from the main model
                return $entry->myrelation()->get([
                    'field_1',
                    'field_2',
                    'field_3',
            …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@jcastroa87
Comment options

Answer selected by jcastroa87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants