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

    ifox

    08/10/2022, 11:32 AM
    hi @Sami with relatedBrowsers you do not need a pivot table that you create yourself since they use the twill provided related table, also they allow multiple modules to be selected from in the same browser field
  • s

    Sami

    08/10/2022, 11:34 AM
    okay, I though I'd need to create pivots anyways, that sounds good. Multiple modules could be maybe done using polymorphic relationship but why to reinvent wheel. Thanks!
  • i

    ifox

    08/10/2022, 11:35 AM
    yes polymorphic browsers are also possible without the related table, its just that with that HasRelated trait everything is handled for you
  • o

    onepiece

    08/10/2022, 2:54 PM
    Hello. I have an error in SEO. When I set seo, it doesn't work and I get this error:
  • j

    JeanSilva

    08/10/2022, 2:56 PM
    Hi, I was trying to search for this question, but didn't found it on discord search feature: Is there a way to set the max option on browsers to infinite instead of a specific limit?
  • o

    onepiece

    08/10/2022, 2:59 PM
    @ifox any solution??
  • i

    ifox

    08/10/2022, 3:06 PM
    Hi @onepiece no need to ping with multiple interrogation points 🙂 please be patient, you posted your question 10 minutes ago
  • o

    onepiece

    08/10/2022, 3:06 PM
    Im sorry🙏
  • i

    ifox

    08/10/2022, 3:08 PM
    the SEO package is not maintained by the core team, so you should submit an issue on GitHub. Is the model you're using it on translatable?
  • o

    onepiece

    08/10/2022, 3:09 PM
    Yes its use A17\Twill\Models\Behaviors\HasTranslation;
  • d

    dakaalim

    08/10/2022, 10:15 PM
    #twill-api (understand that it is still under development)
    Copy code
    composer require area17/twill-api
  • k

    kalle

    08/10/2022, 10:29 PM
    Hmm seems like an odd issue with the post install scripts. Im sure that this package handles configs with the artisan command (servers), but that is not resolved before
    php artisan package:discover
    which throws this error
  • k

    kalle

    08/10/2022, 10:32 PM
    As a debug advice, I would start by removing
    Copy code
    json
    "scripts": {
        "post-autoload-dump": [
            THIS -> "@php artisan package:discover"
        ]
    }
    and after that I would try to install
    twill-api
    and manualy I would deploy server configs. After that revert that change in composer.json.
  • k

    kalle

    08/10/2022, 10:33 PM
    You can also manualy copy/paste that config before install of package from
    twill-api
    . Also here its explained how this works https://laraveljsonapi.io/docs/2.0/servers/
    d
    p
    • 3
    • 19
  • i

    ifox

    08/10/2022, 11:13 PM
    thanks for flagging this, cc @patrick
  • i

    ifox

    08/10/2022, 11:21 PM
    also opened a #1007065780724174909 channel
  • b

    BA7YA

    08/11/2022, 1:59 PM
    Hi guys. Im trying to overwrite MediaField component (just want to add some new buttons), and i put it in resources/assests/js/components (I already have some overwrited components there), but it's not working for me. Seems like twill is not working with my overwrited MediaField and using default one
  • k

    kalle

    08/11/2022, 2:08 PM
    Did you run
    php artisan twill:build
    after that? Components are compiled into JS builds.
  • b

    BA7YA

    08/11/2022, 2:13 PM
    Of course. I’m usually using twill:dev , but this time tried also twill:build
  • a

    alitak

    08/12/2022, 7:22 AM
    Hi all, is there any chance, to store files to module? I generated via cli, selected to attach files, but unfortunatelly it does not work.
  • a

    alitak

    08/12/2022, 7:23 AM
    the model uses the HasFiles trait and the repository uses the HandleFiles trait also
  • a

    alitak

    08/12/2022, 7:24 AM
    i added the files input to the form and the files input appears, I can even select file, but after the update process, it disappears
  • k

    kalle

    08/12/2022, 7:28 AM
    Hello, you will also need https://twill.io/docs/crud-modules/models.html#hasfiles
  • k

    kalle

    08/12/2022, 7:29 AM
    Copy code
    php
    // app/Models/YourModel.php
    
    public $filesParams = ['file_role', ...];
    file_role
    is the name of your form file input.
  • a

    alitak

    08/12/2022, 7:30 AM
    ok, this part wasn't clear for me, thank you for your advice
  • a

    alitak

    08/12/2022, 7:30 AM
    it works indeed 🙂
  • a

    alitak

    08/12/2022, 7:31 AM
    btw i have checked the demo few times, is there a repo for its source code? I think it would answer some of my questons.
  • k

    kalle

    08/12/2022, 7:33 AM
    Sorry, but its not available. Twill company keeps it private for their reasons. But you can always link us / screenshot us page of interest and we will help you.
  • a

    alitak

    08/12/2022, 7:33 AM
    ok
  • k

    kalle

    08/12/2022, 7:34 AM
    But soon on 3x release blog example project will be released for starting projects and can be used as orientation.
1...372373374...484Latest