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

    ifox

    08/09/2021, 9:55 AM
    yes, there are multiple ways to go about it. You could go with
    'editInModal' => true
    in indexOptions. Or you can do what you're saying by passing
    'disableContentFieldset' => true
    to the form layout (in the @extends)
  • l

    leftblank

    08/09/2021, 9:57 AM
    oh that's cool! just tried
    editInModal
    and that's even better, thank you
  • i

    ifox

    08/09/2021, 9:59 AM
    you can add
    'permalink' => false
    there too if you're not using slugs on those modules. And you can also customize the fields in the modal by putting a create.blade.php file next to your form.blade.php file.
  • l

    leftblank

    08/09/2021, 9:59 AM
    thanks @ifox, great to have these options
  • a

    andrewsamuelhan

    08/09/2021, 11:55 AM
    Hi, there is an error whenever I add a user.
    LOG.error: Failed to authenticate on SMTP server with username ...
    does twill have it own mail configuration?
  • a

    andrewsamuelhan

    08/09/2021, 11:56 AM
    I do set my config based on basic .env such as MAIL_DRIVER, MAIL_PORT, HOST, USERNAME, etc
  • i

    ifox

    08/09/2021, 12:00 PM
    Hi @andrewsamuelhan Twill is using your Laravel mail config, nothing special there. When you publish a user it's trying to send an email for them to choose their own password.
  • i

    ifox

    08/09/2021, 12:01 PM
    something you might be careful about is that Laravel is now using MAIL_MAILER
  • l

    leftblank

    08/09/2021, 12:27 PM
    Related to the issue with
    HandleRevisions
    above, where the Preview changes button is fixed in
    dev
    ... I'm seeing a related issue when I click on one of the revisions to hydrate it in the BelongsTo powered browser. The following line is failing in
    hydrateOrderedBelongsTomany
    is failing:
  • l

    leftblank

    08/09/2021, 12:27 PM
    $tableName = $object->$relationship() instanceof BelongsTo ? $object->$relationship->getTable() :$object->$relationship()->getTable();
  • l

    leftblank

    08/09/2021, 12:28 PM
    It appears this is because the foreign key field isn't filled when creating the object from the revision's JSON, resulting in
    $object->$relationship
    being
    null
    , at least in my case
  • l

    leftblank

    08/09/2021, 12:29 PM
    I'm not sure if I'm missing some configuration here, or if it's a bug
  • i

    Ivan Markov

    08/09/2021, 3:00 PM
    Hi. Is it possible to save repeaters in json on the settings page?
  • p

    pboivin

    08/09/2021, 3:06 PM
    Hey @User, It's not currently possible to use repeaters in settings pages, but it's on the roadmap! If I may offer a workaround in the meantime, you could use a "singleton module" (aka. module with only one record in the DB). This will give you the most flexibility.
  • i

    Ivan Markov

    08/09/2021, 3:07 PM
    @User Fine, thank you.
  • a

    andrewsamuelhan

    08/09/2021, 3:42 PM
    Hi thanks for the info. I might forget to add MAIL_FROM_NAME and MAIL_FROM_ADDRESS as its not added by the .env.example until I saw config/mail.php 😆
  • a

    andrewsamuelhan

    08/09/2021, 3:55 PM
    And there is one strange error left. Whenever I clear the cache (I make my own command basically to clear route, view, and any cache). Twill admin couldn’t be accessed. It said missing twill_manifest.json. I managed to upload it on my main assets/admin, {MAINLARAVELAPP}/public/ and also {...}public/admin. But still fail.
  • a

    andrewsamuelhan

    08/09/2021, 3:57 PM
    The last thing I tried to restore cache from my
    storage/framework/cache
    and it worked.
  • p

    pboivin

    08/09/2021, 3:57 PM
    Hey @User, have you tried
    php artisan twill:update
    ?
  • a

    andrewsamuelhan

    08/09/2021, 3:58 PM
    Yes ever on my production server using terminal at cpanel. But it still didn’t work
  • a

    andrewsamuelhan

    08/09/2021, 3:58 PM
    Until I upload specific cache containing manifest file from storage/cache
  • p

    pboivin

    08/09/2021, 3:59 PM
    Ok, interesting. Can you share a little bit more on your custom command you mentionned?
  • a

    andrewsamuelhan

    08/09/2021, 4:00 PM
    Sure
  • a

    andrewsamuelhan

    08/09/2021, 4:00 PM
    Copy code
    Route::get('/clear-cache', function () {
        Artisan::call('cache:clear');
        Artisan::call('route:clear');
        Artisan::call('config:clear');
        Artisan::call('view:clear');
        return "All cache is cleared";
    });
  • p

    pboivin

    08/09/2021, 4:01 PM
    Thanks, looks good
  • p

    pboivin

    08/09/2021, 4:03 PM
    So, after hitting
    example.com/clear-cache
    and running
    php artisan twill:update
    , you are still getting the "Missing twill_manifest.json" error?
  • a

    andrewsamuelhan

    08/09/2021, 4:05 PM
    Still showing error and need to call artisan twill:update
  • a

    andrewsamuelhan

    08/09/2021, 4:05 PM
    Ive tried that using terminal command lol
  • a

    andrewsamuelhan

    08/09/2021, 4:06 PM
    Here is the error
  • a

    andrewsamuelhan

    08/09/2021, 4:07 PM
    Its seems normal at first
1...757677...484Latest