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

    BA7YA

    07/26/2022, 2:12 PM
    One more question How I can change
  • a

    amargoCactus

    07/26/2022, 4:09 PM
    can i add repeaters in settings?
  • i

    ifox

    07/26/2022, 4:37 PM
    @amargoCactus nope, as always complex fields are not compat with settings right now, prefer a singleton
  • d

    dedli

    07/27/2022, 4:59 AM
    Hi guys ) I use Scout with meilisearch for my site global search. I need to add to search blocks content. I find this issue https://github.com/area17/twill/issues/190. Is it steel best way to do it or maybe there is another way? Thanks
  • s

    Sami

    07/27/2022, 8:20 AM
    Hello there! How you doing guys? Is there a way to apply different locale to
    x-twill::date-picker
    ? 🤔
  • k

    kalle

    07/27/2022, 8:43 AM
    Datepicker locale should be automaticly assigned per this https://github.com/area17/twill/search?q=twillLocalization
  • k

    kalle

    07/27/2022, 8:44 AM
    Problem can be if your locale format is not included in Vue config and import is not made for it. https://github.com/area17/twill/blob/0cdd91b1a28073404b3091ed0c9c961ab6597501/frontend/js/utils/locale.js
  • s

    Sami

    07/27/2022, 8:48 AM
    that's my case unfortunately
  • d

    dedli

    07/28/2022, 11:06 AM
    Hi ) Could somebody help with config array to meilisearch. My search is multilang. When I define```public function toSearchableArray(){ return [ 'title' => $this->title ];}``` I get only one lang version
    i
    • 2
    • 13
  • d

    delta107

    07/28/2022, 11:40 AM
    So how do you deal with removing unwanted Twill modules? I mean say you make a module then way later on realize it's redundant or smth. Reverting commits?
  • k

    kalle

    07/28/2022, 12:11 PM
    As it sounds trivial on first read, I get what's your point. I usualy keep all of it, just remove it from routing so no one can access it. But if it creates too much hassle I remove it completly with a new commit, since reverting can be a long process.
  • d

    delta107

    07/28/2022, 12:11 PM
    Nice thanks for the organizational tip!
  • k

    kalle

    07/28/2022, 12:15 PM
    Also before any delete I check for known relathionships between models so nothing gets broken 😄
  • a

    amargoCactus

    07/28/2022, 7:50 PM
    can i make a singleton with a repeater but the repeater's data will be saved in the singleton's table?
  • i

    ifox

    07/28/2022, 7:51 PM
    yes, with a JSON repeater
  • i

    ifox

    07/28/2022, 8:01 PM
    but JSON repeaters are not compatible with all fields either unfortunately, so if you want to make sure to have support for all prefer a repeater with a model
  • s

    sineld

    07/28/2022, 9:16 PM
    Hi guys
  • s

    sineld

    07/28/2022, 9:16 PM
    Is it possible to add "Remember me" feature to Twill?
  • s

    sineld

    07/28/2022, 9:31 PM
    Solved!
  • s

    sineld

    07/28/2022, 9:31 PM
    It's enough to add a remember me input to login blade file:
  • s

    sineld

    07/28/2022, 9:31 PM
    {{ twillTrans('auth.remember_me') }}
  • s

    sineld

    07/31/2022, 10:28 PM
    Hi guys
  • s

    sineld

    07/31/2022, 10:28 PM
    Is it possible to set default values on create pages?
  • i

    ifox

    07/31/2022, 10:29 PM
    hi @sineld yes if the field you're using support a default value you can use your own
    create.blade.php
    file next to your
    form.blade.php
    file
  • s

    sineld

    07/31/2022, 10:31 PM
    'default' => 'Default value', in create.blade.php file
  • s

    sineld

    07/31/2022, 10:31 PM
    Correct?
  • i

    ifox

    07/31/2022, 10:31 PM
    yup
  • s

    sineld

    07/31/2022, 10:32 PM
    Thanks 🙂
  • s

    sineld

    07/31/2022, 10:34 PM
    Is it possible to set this default value from controller or repository?
  • i

    ifox

    07/31/2022, 10:48 PM
    sure you can return it in
    indexData
    in your controller
1...366367368...484Latest