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

    user

    06/24/2021, 1:33 PM
    so Twill is for only data management?
  • u

    user

    06/24/2021, 1:34 PM
    same as Laravel Nova?
  • a

    antonioribeiro

    06/24/2021, 1:34 PM
    Basically, yes, but it's Laravel so you can do whatever you want. Yes, I would say you can compare it with Nova in the sense both are headless.
  • a

    antonioribeiro

    06/24/2021, 1:35 PM
    But they are very different, so it's also hard to compare 😄
  • u

    user

    06/24/2021, 1:35 PM
    So Twill doesn't affect the frontend, right?
  • a

    antonioribeiro

    06/24/2021, 1:37 PM
    Nope, not at all. You use your controllers to get data from Twill and pass them to your frontend or API endpoints
  • u

    user

    06/24/2021, 1:37 PM
    okay, understood.
  • u

    user

    06/24/2021, 1:37 PM
    thanks for your guide.
  • v

    vianney

    06/24/2021, 8:02 PM
    is it possible to overwrite a vue file on the admin section? for example i'm trying to overwrite the Filter.vue file to add some additional buttons
  • i

    ifox

    06/24/2021, 9:18 PM
    https://twill.io/docs/#a-bit-further-extending-twill-with-custom-components-and-custom-workflows
  • i

    ifox

    06/24/2021, 9:19 PM
    if you place your custom
    Filter.vue
    file under
    resources/assets/js/components
    and run
    php artisan twill:build
    , that should do the trick
  • k

    Kirk Bushell

    06/27/2021, 12:22 AM
    I've got a weird issue - I've removed a variable from a form view file, but it still thinks I'm asking for it when I load the page
  • k

    Kirk Bushell

    06/27/2021, 12:22 AM
    Views are not cached
  • i

    ifox

    06/27/2021, 6:31 PM
    Hi @Kirk Bushell, did you sort it out? which variable is it?
  • k

    Kirk Bushell

    06/27/2021, 9:30 PM
    Still there.
  • d

    domihagen

    06/29/2021, 9:09 AM
    Hello Together, we are using Sentry.io to Track our issues in Twill. Now we had a few times, that issues that happened in Twill-Admin wasn´t been Tracked by Sentry. Anyone else has this issue or already an Solution for this?
  • i

    ifox

    06/29/2021, 9:30 AM
    hi @domihagen it sounds like some exceptions are not captured. how did you configure Sentry?
  • i

    ifox

    06/29/2021, 9:30 AM
    do you have an example issue that wasn't captured?
  • d

    domihagen

    06/29/2021, 9:32 AM
    Hi @User, We configured Sentry in the Handler PHP
    Copy code
    public function report(Throwable $exception)
        {
            if (app()->bound('sentry') && $this->shouldReport($exception)) {
                app('sentry')->captureException($exception);
            }
    
            parent::report($exception);
        }
    The actual Error, that wasn´t tracked, was that one:
    Copy code
    Repository class not found for model 'Contact' {"userId":59,"exception":"[object] (Exception(code: 0): Repository class not found for model 'Contact' at /var/www/vendor/area17/twill/src/Repositories/ModuleRepository.php:879)
  • d

    domihagen

    06/29/2021, 9:33 AM
    I just found it, by dumping Production to my local environment and look into the laravel.log
  • d

    domihagen

    06/29/2021, 9:35 AM
    This was also a strange Bug. Our Content-Editor has duplicated a Page (with Blocks). And somehow the Relation (Browser) got lost in the Contact-Block
  • d

    domihagen

    06/29/2021, 9:36 AM
    This is the original Block:
    Copy code
    {
      "browsers": {
        "contact": [
          2
        ]
      }
    }
    This is the Block, that made the issue:
    Copy code
    {
      "browsers": {
        "contact": []
      }
    }
  • i

    ifox

    06/29/2021, 9:38 AM
    interesting, thanks for sharing those details
  • i

    ifox

    06/29/2021, 9:39 AM
    the actual relationship between that block and your contacts table should be in the polymorphic
    related
    table though
  • d

    domihagen

    06/29/2021, 9:40 AM
    In the
    related
    Table there only was the relationship from the original Block
  • d

    domihagen

    06/29/2021, 9:41 AM
    I think the relation was removed from the Browser.
  • i

    ifox

    06/29/2021, 9:41 AM
    right, that sounds like an issue with the duplicate action
  • d

    domihagen

    06/29/2021, 9:42 AM
    I looked into the Revsion-Table. There was no Relation before the issue happened
  • d

    domihagen

    06/29/2021, 9:43 AM
    Revision from 16:51
    Copy code
    {
      "id": 152537,
      "type": "a17-block-contact",
      "content": [],
      "medias": [],
      "browsers": [],
      "blocks": []
    }
    Revision from 16:58
    Copy code
    {
      "id": 152564,
      "type": "a17-block-contact",
      "content": [],
      "medias": [],
      "browsers": {
        "contact": []
      },
      "blocks": []
    }
  • i

    ifox

    06/29/2021, 9:44 AM
    regarding the exception not being tracked by sentry, this is because Twill has an internal handler here https://github.com/area17/twill/blob/2.x/src/Exceptions/Handler.php
1...343536...484Latest