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

    patrick

    09/07/2021, 2:23 PM
    Hi @User ! I've been refactoring twill-image on the develop branch quite a bit last Friday and will update the documentation today. Happy to help out in the meantime!
  • i

    Ivan Markov

    09/07/2021, 2:28 PM
    this is great news!
  • i

    ifox

    09/07/2021, 2:33 PM
    slug-generation
  • a

    afatmustafa

    09/08/2021, 7:20 AM
    Hi, I enabled NestedSet for a module, I did everything as in the documentation. Normal reorder and nested reorder does works, but nested reorder doesn't save. Where could I have made a mistake?
    i
    p
    • 3
    • 47
  • s

    Sami

    09/08/2021, 11:14 AM
    Hey, is there a way to not first fill the Title and then rest of the inputs? My problem is that when some fields are not
    nullable
    in my migrations then the Entity does not get created when only Title is filled
  • i

    ifox

    09/08/2021, 11:15 AM
    Hey there, yes, you can use
    skipCreateModal
    in your indexOptions.
  • i

    ifox

    09/08/2021, 11:17 AM
    nested-set
  • m

    Mho

    09/08/2021, 3:30 PM
    Hi all 😀 I don't see blocks anymore on the editor after running
    php artisan twill:build
    Anyone with an idea why? 🙏
  • p

    pboivin

    09/08/2021, 3:32 PM
    Hey @User , do you have any errors in the browser console?
  • m

    Mho

    09/08/2021, 3:33 PM
    Hi @User, Nope, no errors
  • i

    ifox

    09/08/2021, 3:33 PM
    @Mho do you use custom Vue blocks or custom Vue components? If not, try twill:update, as you do not need to build.
  • i

    ifox

    09/08/2021, 3:34 PM
    if you are, did you override any Twill blade views?
  • m

    Mho

    09/08/2021, 3:35 PM
    hi @User, I don't use any custom Vue components. Let me try a
    twill:update
    , thanks
  • i

    ifox

    09/08/2021, 3:36 PM
    add a
    php artisan view:clear && php artisan cache:clear
    to that and from there if you still have the issue, we can investigate more
  • m

    Mho

    09/08/2021, 3:40 PM
    Thanks @User , I just ran all the above commands and still getting same. Strangely, the preview works fine. Also, I notice the Editor button lost its icon:
  • m

    Mho

    09/08/2021, 4:13 PM
    ok, button icons back after clearing view cache again
  • m

    Mho

    09/08/2021, 4:13 PM
    just can't still see the blocks
  • i

    ifox

    09/08/2021, 4:22 PM
    did you override any Twill blade views?
  • m

    Mho

    09/08/2021, 4:33 PM
    No, I didn't. was just testing the build command and stopped seeing the blocks.
  • m

    Mho

    09/08/2021, 4:35 PM
    Is there a way re-install and maintain twill but maintaining created blocks and db data?
  • i

    ifox

    09/08/2021, 4:50 PM
    as long as you don't delete your database, they will still be there whatever you do on the code
  • i

    ifox

    09/08/2021, 4:50 PM
    i would try a fresh project with your blocks blade files to see if they are working fine
  • i

    ifox

    09/08/2021, 4:51 PM
    anything in Laravel's logs?
  • i

    ifox

    09/08/2021, 4:52 PM
    another thing to check is the view:source of the form page to see if the blocks are correctly inlined for Vue to pick up on
  • m

    Mho

    09/08/2021, 5:01 PM
    Ok, let me check those, thanks
  • s

    Sami

    09/09/2021, 9:22 AM
    Is there a way to use seeder when my entity has a Translation table? in my DatabaseSeeder I have
    Copy code
    PHP
    public function run()
    {
        Element::firstOrCreate([
            'title' => 'Water'
        ]);
    }
    and it tells me that title is not found, which I understand, but don't know how to go around this
  • i

    ifox

    09/09/2021, 9:25 AM
    @Sami
    Copy code
    [
        'en' => [
            'title' => 'Water'
        ]
    ]
  • i

    ifox

    09/09/2021, 9:25 AM
    https://github.com/Astrotomic/laravel-translatable
  • i

    ifox

    09/09/2021, 9:26 AM
    see ⬆️
  • s

    Sami

    09/09/2021, 9:26 AM
1...878889...484Latest