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

    AdamCord

    05/17/2021, 7:06 PM
    In twill.php I have... 'block_editor' => [ 'repeaters' => [ 'rate' => [ 'title' => 'Room Type', 'trigger' => 'Add room type', 'component' => 'a17-block-rate' ] ] ],
  • a

    AdamCord

    05/17/2021, 7:06 PM
    the view file is /resources/views/admin/blocks/rate.blade.php
  • i

    ifox

    05/17/2021, 7:07 PM
    ok, do you also have a block called
    rate
    and did you update your Twill admin assets?
  • a

    AdamCord

    05/17/2021, 7:09 PM
    sorry when you say do i have a block called rate what are you asking exactly? I have a block view file (just referenced above) and I refer to that in the main objects view file
  • a

    AdamCord

    05/17/2021, 7:10 PM
    with : @formField('repeater', ['type' => 'rate'])
  • i

    ifox

    05/17/2021, 7:11 PM
    no worries, I mean in
    twill.block_editor.blocks
  • i

    ifox

    05/17/2021, 7:12 PM
    sounds like you're only using it as a repeater (you could be using the same blade file as a block too)
  • a

    AdamCord

    05/17/2021, 7:12 PM
    sorry its been a while since using twilll...
  • a

    AdamCord

    05/17/2021, 7:12 PM
    im not using full block editing no
  • a

    AdamCord

    05/17/2021, 7:12 PM
    i just have a basic repeater setup
  • a

    AdamCord

    05/17/2021, 7:12 PM
    via some guide on spectum i imagine. i did this a year or more ago. it was working fine.
  • a

    AdamCord

    05/17/2021, 7:13 PM
    and no i probably havent updated my admin assets (can you confirm what I need to do for that?)
  • i

    ifox

    05/17/2021, 7:14 PM
    php artisan twill:update
    would do it. If that's still happening after that, well that should not be happening and we're going to look into it. In the meantime can you try to move your
    rate.blade.php
    file from the blocks folder to a new
    repeaters
    folder in
    views/admin
    ?
  • a

    AdamCord

    05/17/2021, 7:15 PM
    amazing that worked on my dev setup!
  • a

    AdamCord

    05/17/2021, 7:15 PM
    the command fixed it
  • i

    ifox

    05/17/2021, 7:15 PM
    twill:update did?
  • a

    AdamCord

    05/17/2021, 7:15 PM
    yep
  • i

    ifox

    05/17/2021, 7:15 PM
    Ok great
  • a

    AdamCord

    05/17/2021, 7:15 PM
    there is just one problem ;p
  • a

    AdamCord

    05/17/2021, 7:15 PM
    (isn't there always).
  • i

    ifox

    05/17/2021, 7:15 PM
    haha
  • a

    AdamCord

    05/17/2021, 7:15 PM
    since a few months back php artisan .... stopped working on my production server
  • a

    AdamCord

    05/17/2021, 7:16 PM
    i know this is likely not a pure twill issue but have you got an ideas ?
  • a

    AdamCord

    05/17/2021, 7:16 PM
    so this is working fine on my dev but i am not going to be able to run that command on the live server as it stands
  • a

    AdamCord

    05/17/2021, 7:16 PM
    php artisan anything just returns the command line
  • a

    AdamCord

    05/17/2021, 7:16 PM
    no output
  • i

    ifox

    05/17/2021, 7:16 PM
    do you have the error you're getting?
  • i

    ifox

    05/17/2021, 7:16 PM
    Oh just nothing?
  • i

    ifox

    05/17/2021, 7:17 PM
    what about in logs?
  • a

    AdamCord

    05/17/2021, 7:17 PM
    pretty much instantly juts returns the command line
12345...484Latest