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

    ifox

    06/30/2021, 12:55 AM
    happy to think about how that would look in Twill, pretty sure both approaches could coexist
  • k

    Kirk Bushell

    06/30/2021, 12:56 AM
    arrays and objects for configuration/setup?
  • i

    ifox

    06/30/2021, 12:57 AM
    no, form fields defined in blade, and forms defined through a fluent API
  • k

    Kirk Bushell

    06/30/2021, 12:59 AM
    Ii know I've asked this before, but I couldn't find it in message history
  • k

    Kirk Bushell

    06/30/2021, 12:59 AM
    How do I horizontally align fields in a repeater?
  • i

    ifox

    06/30/2021, 12:59 AM
    @formColumns
  • i

    ifox

    06/30/2021, 1:00 AM
    it's a component with left right and middle slots
  • k

    Kirk Bushell

    06/30/2021, 1:00 AM
    ty 🙂
  • k

    Kirk Bushell

    06/30/2021, 1:00 AM
    how do i access those slots?
  • i

    ifox

    06/30/2021, 1:04 AM
    Copy code
    @formColumns
      @slot('left')
        something
      @endslot
      ...
    @endformColumns
  • k

    Kirk Bushell

    06/30/2021, 1:05 AM
    ah, ty 😄
  • k

    Kirk Bushell

    06/30/2021, 1:06 AM
    that's totally not what I found in laravel docs
  • i

    ifox

    06/30/2021, 1:07 AM
    there are many ways to use Laravel components and they change the one in the docs every major version lol
  • k

    Kirk Bushell

    06/30/2021, 2:00 AM
    Hmmm... so saving my repeaters is trying to set the ID on the record...
  • k

    Kirk Bushell

    06/30/2021, 11:09 AM
    How would I filter on a related column?
  • k

    Kirk Bushell

    06/30/2021, 11:09 AM
    or on a scope?
  • k

    Kirk Bushell

    06/30/2021, 11:09 AM
    I want to filter articles in the admin by contributor, and an article can have multiple contributors
  • k

    Kirk Bushell

    06/30/2021, 11:10 AM
    so i need to join on contributors where the user id is equal to the filter
  • m

    MedvedOurs

    06/30/2021, 11:16 AM
    Hi! Does anyone know if there is a way to disable a browser field? I'm trying to display related objects as information only, I don't want this list to be editable
  • i

    ifox

    06/30/2021, 11:58 AM
    check the filter hook in the repository, there are a couple of helpers, and you can use scopes, or the query builder manually
  • i

    ifox

    06/30/2021, 12:00 PM
    not at the moment but we are going to be working on allowing the read-only attribute on all fields. For now you can hack it around by putting a pointer-events: none container around it, or by displaying the content of the browser in plain text. hacks, for sure, but if you need that quickly...
  • k

    Kirk Bushell

    06/30/2021, 12:04 PM
    yeah I dug into it but honestly felt a little lost
  • m

    MedvedOurs

    06/30/2021, 12:05 PM
    Thanks @User , I'll try that out!
  • s

    Sami

    06/30/2021, 2:55 PM
    Hello, I am new to Laravel and I need to learn it with some CMS system - I chose Twill. I get this error message after the
    7-Minute CMS
    tutorial, does somebody know something about it? I couldn't find anything myself
  • p

    pboivin

    06/30/2021, 3:09 PM
    Hey @Sami, what version of Laravel are you on?
  • p

    pboivin

    06/30/2021, 3:18 PM
    Also, can you double-check if your
    Product
    model extends
    A17\Twill\Models\Model
    ?
  • s

    Sami

    06/30/2021, 3:31 PM
    My version is 8.47.0. Yes, that was the little bugger! Thanks
  • s

    Sami

    06/30/2021, 4:55 PM
    I have another one... I get
    Your submission could not be validated, please fix and retry
    . I don't know what this message want me to do. It happens when I fill the Title field and press Create button
  • i

    ifox

    06/30/2021, 4:55 PM
    check the browser console and/or Laravel logs
  • s

    Sami

    06/30/2021, 4:59 PM
    by Laravel logs are meant those that are in
    storage/logs/
    ? There is only one laravel.log that says nothing about the current problem unfortunately. However in the console I get
    Copy code
    Call to undefined method App\\Models\\Product::medias()", exception: "BadMethodCallException", file: "S:\\PhPProjects\\mejdlokal\\learn-laravel\\vendor\\laravel\\framework\\src\\Illuminate\\Support\\Traits\\ForwardsCalls.php
1...394041...484Latest