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

    ifox

    10/07/2022, 12:45 PM
    https://github.com/area17/twill/blob/293a06d521c45ff833246fda41ca7885a0a41983/src/TwillServiceProvider.php#L198
  • i

    ifox

    10/07/2022, 12:46 PM
    You can redefine auth.passwords.twill_users in your configuration files
  • j

    JeanSilva

    10/07/2022, 1:11 PM
    thanks, so to change it, I need to extend this TwillServiceProvider or is there a config file (like twill.php)?
  • i

    ifox

    10/07/2022, 1:12 PM
    no, you need to put it in
    config/auth.php
    (Laravel default auth config file)
  • j

    JeanSilva

    10/07/2022, 1:15 PM
    thanks @ifox 🙂
  • z

    zynth

    10/07/2022, 1:45 PM
    Hi, I'm looking into integrating some sort of event calendar (or appointment calendar rather) into twill and was wondering if there has been anything done like this before.
  • i

    ifox

    10/07/2022, 1:51 PM
    Hi @zynth can you clarify what that integration looks like? Do you mean that your frontend will let users choose an appointment slot and you want to manage those slots from Twill?
  • z

    zynth

    10/07/2022, 2:06 PM
    Sort of like that yeah. I'm still not sure if the users should be able to interact with the calendar or just get a glance of all the available slots for an appointment. The website I'm building is for a midwife (I think it's called that in english?).
  • z

    zynth

    10/07/2022, 2:08 PM
    The way we've done it before was to just edit some calendar images and change them when a new appointment was requested.
  • z

    zynth

    10/07/2022, 2:09 PM
    But I wanted something more user friendly.... 😄
  • i

    ifox

    10/07/2022, 6:35 PM
    @zynth https://discord.com/channels/811936425858695198/811986546503843850/956622613017403413 https://discord.com/channels/811936425858695198/877602802900291594/878028035838865419
  • z

    zynth

    10/07/2022, 8:03 PM
    Thanks, will take a look soon. 👍
  • h

    Hip-Hop

    10/08/2022, 3:08 AM
    public $rules = [ 'image_block' => 'required' ]; This code does not work if the field is in a block. Moreover, the field with the image is not visible in the blocks table, but I see it in the mediables table
  • h

    Hip-Hop

    10/09/2022, 5:42 AM
    @ifox Good afternoon! Can I have a question about image verification? Fixed the field to @formField('medias', [ ... 'translated' => false, ... ]) I did the check as follows public $rules = [ 'image_block' => 'required', ]; Now everything works. But if for example I have 2 images in different languages, but is it more logical to put 'translated' => true? And winnow two fields? But how to check them then? Or am I not understanding something?
    h
    • 2
    • 1
  • s

    slsooop

    10/10/2022, 7:24 AM
    How to connect a module that is not in a group to the browser field?
    h
    i
    • 3
    • 9
  • h

    Harings Rob

    10/10/2022, 7:26 AM
    ifox4260 Good afternoon Can I have a
  • s

    Shiftless

    10/10/2022, 12:40 PM
    Is this a known issue: If you use a browser in a block as a related item and delete the former selected browser and save the block it is not removed from the block content?
  • i

    ifox

    10/10/2022, 12:58 PM
    Hi @Shiftless do you mean your change doesn't persist?
  • s

    Shiftless

    10/10/2022, 1:01 PM
    yes if the browser is empty on the second save after it was filled in the first save it does not get removed from the content of the block
  • s

    Shiftless

    10/10/2022, 1:03 PM
    i think it is because the afterSave in vendor\area17\twill\src\Repositories\BlockRepository.php does check if the browser is a given field in the request which it is not when it is empty
  • s

    Shiftless

    10/10/2022, 1:05 PM
    The connection in the related gets deleted but not in the content of the block
  • i

    ifox

    10/10/2022, 1:07 PM
    I see, this might be a regression indeed. Is the browser then showing the relation in the UI after a page refresh, or is it only in the content of the block in db that you're seeing it?
  • s

    Shiftless

    10/10/2022, 1:21 PM
    it is not showing in the browser after a reload
  • i

    ifox

    10/10/2022, 1:22 PM
    ok, good. So the browsers key in the content column of blocks is "legacy" in the sense that the related table is the the source of truth for browsers in blocks
  • i

    ifox

    10/10/2022, 1:25 PM
    but I know that some users most likely have been relying on the content of that content column (pun intended lol), so we could address this issue in 2, and remove browsers from the content column in 3 cc @Harings Rob
  • u

    5euro

    10/10/2022, 2:05 PM
    Hi guys, I'm having trouble implementing azure with twill's media library. Is there maybe some more in-depth articles about this topic?
    i
    • 2
    • 44
  • h

    Harings Rob

    10/11/2022, 7:11 AM
    Trying to understand the whole issue here, but not really getting it. I have a block in which I add a browser. I add the block to my page, and select an item from the browser. I save, then I remove the browser item and save again?
  • m

    moses

    10/11/2022, 9:14 AM
    Hi everyone. I am trying to order a repeater field in a block editor. I set the
    reorder
    option of the repeater field to
    true
    but it doesn't work. Any idea what I am doing wrong?
  • i

    ifox

    10/11/2022, 9:17 AM
    Hi @moses you shouldn't need to do anything for a repeater to be reorderable in a block. Do you mean when you retrieve them? Or do you mean the drag and drop doesn't work?
  • i

    ifox

    10/11/2022, 9:19 AM
    @Harings Rob yes, that's what I understood, and from what Shiftless is saying the content column still has a reference to the browsers selected items from the save before you empty it.
1...413414415...484Latest