https://twill.io logo
Join Discord
Powered by
# ❓questions
  • r

    rabol

    01/21/2023, 9:47 AM
    is soft delete on models a ‘hard’ requirement or can it be configured ?
  • h

    Harings Rob

    01/21/2023, 10:01 AM
    I have to investigate this. But I believe we can maybe make that optional. It is however not configurable at the moment.
  • r

    rabol

    01/21/2023, 10:06 AM
    i have a app that I’m trying to transition to twill - or atleast Twill is in serious consideration, but I just saw a note on softdelete and that might be an issue for my app - sure I could add softdeletes. Not sure what will happen when one is doing that on a exsting app… any risks ?
  • h

    Harings Rob

    01/21/2023, 10:09 AM
    no there's no risks in adding soft delete. It automatically applies to your queries so soft-deleted items are restored. You do however get the possibility to restore items deleted by mistake. So it is only a plus in my opinion.
  • h

    Harings Rob

    01/21/2023, 10:42 AM
    I made a pr poc that would allow skipping softdelete, it will require more work on your model's side. https://github.com/area17/twill/pull/2081
  • h

    Harings Rob

    01/21/2023, 10:42 AM
    Still have to test this a lot more.
  • r

    rabol

    01/21/2023, 2:07 PM
    wow thanks - will have a look later
  • b

    beardcoder

    01/21/2023, 10:22 PM
    Hello Together, has anyone a recipe for me to create a frontend navigation from a backend nested modules tree? Twill v3
  • h

    Harings Rob

    01/22/2023, 8:31 AM
    @beardcoder there is example code in the examples/basic-page-builder folder
  • b

    beardcoder

    01/22/2023, 8:31 AM
    Big thx. ❤️
  • c

    ckmirafss

    01/22/2023, 10:41 AM
    Hi, how can we add the "minDate" as the date today?
  • h

    Harings Rob

    01/22/2023, 12:49 PM
    @ckmirafss you can use
    Carbon::now()->hour(12)->format('Y-m-d H:i')
  • b

    björn

    01/22/2023, 8:28 PM
    just went through the tutorials. i know they're a bit dated, but helpful nonetheless. i somehow missed the part that explains how these views are configured? something to do with Presenters?
  • i

    ifox

    01/22/2023, 8:55 PM
    @björn you can use accessors or presenters in $indexColumns. In twill 3 there is a better approach with our new table builder https://twill.io/docs/3.x/crud-modules/tables.html
  • b

    björn

    01/22/2023, 9:06 PM
    this is awesome! looks like v3 is a really big deal. so glad to see new docs!
  • j

    jcsoriano.cw

    01/23/2023, 3:28 AM
    hello! If we were to create filters on top of a Twill module table or index view, would that be possible (something like the attached screenshot)? How would one go about it with Twill? I can't seem to see how in https://twill.io/docs/crud-modules/controllers.html
  • c

    ckmirafss

    01/23/2023, 7:34 AM
    @Harings Rob Thanks mate!
  • c

    ckmirafss

    01/23/2023, 7:36 AM
    Hello, Is there a way to change this? I want to change it to news-and-events
  • h

    Harings Rob

    01/23/2023, 8:28 AM
    hey @ckmirafss check https://twill.io/docs/crud-modules/controllers.html#customizing-the-permalink
  • h

    Harings Rob

    01/23/2023, 8:32 AM
    Hey, some things are possible, this is for sure easier with Twill 3 in case you can use that: https://twill.io/docs/3.x/crud-modules/tables.html#search otherwise you have to do it the old fashion way check "filters" here https://twill.io/docs/crud-modules/controllers.html
  • a

    Abdullahi

    01/23/2023, 8:54 AM
    Hey, those twill have a view page for data?
  • k

    kalle

    01/23/2023, 8:56 AM
    If I understand you completly, yes twill has a view/edit page for data. Full CRUD is included with the modules.
  • h

    Harings Rob

    01/23/2023, 8:58 AM
    A view page depends on what you mean exactly. If you mean a screen to view-only the details of a model, then no.
  • k

    kalle

    01/23/2023, 9:02 AM
    Form can always serve as view only with disabled fields. 😄 Just saying, I used it like that in the past.
  • a

    Abdullahi

    01/23/2023, 9:08 AM
    Yes to only view and not edit.
  • h

    Harings Rob

    01/23/2023, 9:13 AM
    What is the need for it? You can of course create custom pages that can act as detail pages.
  • a

    Abdullahi

    01/23/2023, 9:15 AM
    Basically view all details of a data and we want to disable the edit page for it.
  • h

    Harings Rob

    01/23/2023, 9:16 AM
    I can see the need for it, but currently out of the box there's no solution nor any designs for that.
  • h

    Harings Rob

    01/23/2023, 9:18 AM
    Created an issue to have a look at it in the future: https://github.com/area17/twill/issues/2086
  • e

    elkex

    01/23/2023, 9:24 AM
    How do you address the Twill users model?
1...451452453...484Latest