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

    ifox

    09/10/2021, 11:49 AM
    what is your Laravel app default locale?
  • h

    Hữu Hiếu

    09/10/2021, 11:49 AM
    vi
  • i

    ifox

    09/10/2021, 11:50 AM
    then it will look for a row with vi as the locale and true in active
  • i

    ifox

    09/10/2021, 11:51 AM
    row 61 should be returned by forSlug("cau-....")
  • h

    Hữu Hiếu

    09/10/2021, 12:01 PM
    but it still return null
  • i

    ifox

    09/10/2021, 12:03 PM
    can you check your current app()->get Locale() in that dd? also are you calling forSlug on the repository or the model?
  • c

    Chronos

    09/10/2021, 12:04 PM
    Where do I put the blade files to modify the reset password email template
  • h

    Hữu Hiếu

    09/10/2021, 12:05 PM
    in repository
  • i

    ifox

    09/10/2021, 12:06 PM
    resources/views/vendor/twill/emails
  • i

    ifox

    09/10/2021, 12:08 PM
    can you try to dd
    \App\Models\DonVi::forSlug('...')->first()
    ?
  • h

    Hữu Hiếu

    09/10/2021, 12:11 PM
    it returned
  • i

    ifox

    09/10/2021, 12:12 PM
    ok so this works fine. which traits do you have on
    DonViRepository
    ?
  • h

    Hữu Hiếu

    09/10/2021, 12:13 PM
    use HandleBlocks, HandleSlugs, HandleMedias, HandleTags, HandleFiles, HandleRevisions;
  • i

    ifox

    09/10/2021, 12:15 PM
    you are using
    publish_start_date
  • i

    ifox

    09/10/2021, 12:15 PM
    so the repository forSlug is verifying that the publish_start_date is past
  • i

    ifox

    09/10/2021, 12:16 PM
    if you go edit your record with a Publication date in the past, the repository
    forSlug
    call with return it
  • i

    ifox

    09/10/2021, 12:17 PM
    oh well it looks like it's already in the past
  • i

    ifox

    09/10/2021, 12:18 PM
    does
    \App\Models\DonVi::forSlug('...')->published()->visible()->first()
    return it?
  • h

    Hữu Hiếu

    09/10/2021, 12:20 PM
    it return null
  • i

    Ivan Markov

    09/10/2021, 12:48 PM
    Hi @User, i updated my local package twill-image to the latest version. I discovered the wrong order of the sources. First jpg is displayed and then webp.
  • i

    ifox

    09/10/2021, 12:51 PM
    sorry about that @Ivan Markov, @patrick will check this out when he's online. Can we move twil-image convos to #873445927740903475? Thanks!
  • i

    ifox

    09/10/2021, 12:52 PM
    and I guess it works if you remove the visible scope?
  • h

    Hữu Hiếu

    09/10/2021, 12:52 PM
    yes
  • l

    lluukkyy

    09/10/2021, 1:14 PM
    Hi twill support, I have a short question regarding the block editor: Is there a way to set a "max" value for a specific block? The idea is to have a block that can appear 0 oder 1 times in the content.
  • o

    ohkannaduh

    09/10/2021, 1:15 PM
    I'd guess it was npm, but who knows. good it works now
  • k

    Klief

    09/10/2021, 1:25 PM
    Is there some native formfield for defining the published start date on our model I can turn on, or do we have to define the datepicker field ourselves?
  • i

    ifox

    09/10/2021, 1:26 PM
    then I think you might have a timezone issue, check what Carbon::now() returns.
  • i

    ifox

    09/10/2021, 1:27 PM
    not at the moment, but this is definitely in the roadmap (blocks composition rules)
  • i

    ifox

    09/10/2021, 1:27 PM
    there is a native one in the right sidebar as long as you have a
    publish_start_date
    column
  • i

    ifox

    09/10/2021, 1:28 PM
    same for
    publish_end_date
1...909192...484Latest