Replies: 3 comments 1 reply
-
Hello @gstrat88 I hope it goes well for you. I don't understand if you have any problems with relationships. Can you please explain in detail so I can help. Thanks. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Scenario: Also something irrelevent, where should i report bugs for the pro version? |
Beta Was this translation helpful? Give feedback.
-
@gstrat88, I think what you describe actually exists. After the fields are defined from the database, you can do one of two things:
As per your example you can do the following (in your Article CRUD) protected function setupCreateOperation(): void
{
CRUD::setFromDb();
CRUD::field('category_id')->type('relationship');
} Note that you must have defined the relationship (in your Article model) public function category(): BelongsTo
{
return $this->belongsTo(Category::class);
} This will replace your |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello it would be nice if we could replace a column, and not modify it, as this does not work well with relathionships!
In that way it could be more easy to make modifications to a crud using setup from db!
app/Library/CrudPanel/Traits/Columns.php
app/Library/CrudPanel/Traits/Fields.php
Beta Was this translation helpful? Give feedback.
All reactions