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

    mateoD

    08/01/2022, 12:02 PM
    hello everyone , after upload a picture in twill it does not appear return me this error GET http://127.0.0.1:8181/img/24095899-09f3-4093-91b4-b6fb90999b52/image-4.png?fm=avif&q=4000&auto=compress%2Cformat&fit=min&h=256 net::ERR_CONNECTION_REFUSED
  • i

    ifox

    08/01/2022, 12:34 PM
    Hi @mateoD the port is most likely your issue
  • i

    ifox

    08/01/2022, 12:36 PM
    how is your Laravel app served and what are your APP_URL and ADMIN_APP_URL looking like ?
  • i

    ifox

    08/01/2022, 2:26 PM
    are you running a frontend application on 8181 or just your Laravel app?
  • i

    ifox

    08/01/2022, 2:26 PM
    I'd suggest trying to use the same admin app url than app url, with ADMIN_APP_PATH
  • m

    mateoD

    08/01/2022, 2:47 PM
    only my laravel app and it return me always that error
  • o

    onepiece

    08/01/2022, 3:00 PM
    hello everyone ,how can i add tags in models and migrations??
  • u

    user

    08/01/2022, 3:09 PM
    Hi
  • u

    user

    08/01/2022, 3:09 PM
    I'm new here
  • u

    user

    08/01/2022, 3:10 PM
    Can I add twill to my blog site?
  • k

    kalle

    08/01/2022, 4:59 PM
    Hello, Twill is using https://cartalyst.com/manual/tags/12.x package to handle tags. They are pre included in base Model which you extend. Also you can use existing package methods for tags. To start using it add
    use HandleTags
    trait in your module repository In module
    form.blade.php
    you can include it like this https://twill.io/docs/form-fields/tags.html And after that you can use tags in your use case.
  • k

    kalle

    08/01/2022, 5:06 PM
    Unfortunately you have left the server 🥲
  • o

    onepiece

    08/02/2022, 7:30 AM
    Thanks😉
  • s

    Shiftless

    08/02/2022, 9:12 AM
    is it possible to just validate one language with @twillBlockValidationRulesForTranslatedFields?
  • s

    Shiftless

    08/02/2022, 9:13 AM
    To describe it better: I would like to make a field only required in the german translation.
  • i

    ifox

    08/02/2022, 9:15 AM
    hi @Shiftless in that case you should be able to validate with standard rules:
    'fieldName.de' => 'required'
    should work.
  • s

    Shiftless

    08/02/2022, 9:15 AM
    okay ill give it a try.
  • s

    Shiftless

    08/02/2022, 9:20 AM
    Copy code
    blocks.1659431175756[headline.de][de]: ["The headline.de field is required."]
    blocks.1659431175756[headline.de][en]: ["The headline.de field is required."]
    Okay this does not work 😦
  • i

    ifox

    08/02/2022, 9:20 AM
    ha you didn't mention the field was in a block
  • s

    Shiftless

    08/02/2022, 9:21 AM
    what is twillBlockValidationRulesForTranslatedFields used else for?
  • s

    Shiftless

    08/02/2022, 9:21 AM
    is this not a block only directive?
  • i

    ifox

    08/02/2022, 9:22 AM
    I didn't notice it was the block directive you were talking about, I though you were talking about the form request method
  • s

    Shiftless

    08/02/2022, 9:23 AM
    ah okay ^^ i will dig down the validator in the
    A17\Twill\Services\Blocks\Block
    class
  • i

    ifox

    08/02/2022, 9:24 AM
    did you try @twillBlockValidationRules with .de?
  • i

    ifox

    08/02/2022, 9:25 AM
    I suspect this might not work either though, so feel free to submit an issue with your use case
  • u

    24kappa

    08/02/2022, 9:25 AM
    Hi, there's a way to prefill settings section?
    i
    k
    • 3
    • 15
  • s

    Shiftless

    08/02/2022, 9:26 AM
    okay it does not work. where does the validation happen?
  • i

    ifox

    08/02/2022, 9:27 AM
    https://github.com/area17/twill/blob/202cf627b9ead2aa6f4e5a909ed07bc03835d12d/src/Repositories/Behaviors/HandleBlocks.php#L114
  • d

    delta107

    08/02/2022, 10:45 AM
    Hello! Any idea why when reading a file from a module I get an http url instead of https url?
  • d

    delta107

    08/02/2022, 10:59 AM
    Is this a Laravel thing or a Twill thing? Why would this line of code in Disk class in the Twill source code give a url with http when the desired url is https and it's given so in .env? return $this->filesystemManager->disk($this->config->get('twill.file_library.disk'))->url($id);
1...367368369...484Latest