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

    hazelbag

    07/28/2021, 4:07 PM
    Hey @User , hope you are well
  • i

    ifox

    07/28/2021, 4:07 PM
    so if you are saving ids this is meant to be used with a model relationship
  • i

    ifox

    07/28/2021, 4:07 PM
    you can still use it with a single column if you want
  • i

    ifox

    07/28/2021, 4:07 PM
    your specific issue is because you need to cast that field as an array in your model
  • h

    hazelbag

    07/28/2021, 4:09 PM
    Just to make sure I understand then in the model I select the table with the said values and pass that or am I missing something?
  • i

    ifox

    07/28/2021, 4:10 PM
    https://twill.io/docs/#multi-select-with-dynamic-values
  • h

    hazelbag

    07/28/2021, 4:12 PM
    Ah okay cool, I am going to do this now, will post back once I have succeeded. Thank you @User
  • h

    hazelbag

    07/28/2021, 4:18 PM
    Should the migration include the following fields?
    Copy code
    createDefaultRelationshipTableFields($table, 'fuse', 'post');
       $table->integer('title')->unsigned()->index();
    i
    • 2
    • 20
  • b

    Baymac

    07/28/2021, 5:35 PM
    Hey folks, me again. Still looking into this issue, I am now getting a 500 error on production when visiting the user edit page (though it is still not appearing in the navigation);
    "exception":"[object] (Facade\\Ignition\\Exceptions\\ViewException(code: 0): Call to undefined function array_first() (View: /xxxx/resources/views/vendor/twill/partials/navigation/_primary_navigation.blade.php) at /xxxx/resources/views/vendor/twill/partials/navigation/_primary_navigation.blade.php:7)
  • b

    Baymac

    07/28/2021, 5:35 PM
    Any ideas?
  • p

    pboivin

    07/28/2021, 5:42 PM
    @User what version of Laravel are you on?
  • b

    Baymac

    07/28/2021, 5:46 PM
    Laravel Framework 8.51.0
  • p

    pboivin

    07/28/2021, 5:47 PM
    I believe you must be running an older version of Twill?
    array_first
    is an older helper that was removed from recent Laravel, in favor of
    Arr::first()
    .
  • b

    Baymac

    07/28/2021, 5:47 PM
    Hmm odd, as it shows me as running Twill 2.4.0?
  • p

    pboivin

    07/28/2021, 5:50 PM
    Weird, from what I can see in the Git history,
    array_first
    was removed in 2019, before Twill 2.0...
  • b

    Baymac

    07/28/2021, 5:52 PM
    Its weird because everything runs fine locally, just on my production environment
  • p

    pboivin

    07/28/2021, 5:56 PM
    Can you run
    composer outdated
    on your production machine? Just to double-check the state of your packages?
  • b

    Baymac

    07/28/2021, 6:01 PM
    Sure, will run now
  • p

    pboivin

    07/28/2021, 6:01 PM
    (Mostly interested in the
    area17/twill
    and
    laravel/framework
    lines)
  • h

    hazelbag

    07/28/2021, 6:19 PM
    @User could you maybe assist please?
  • p

    pboivin

    07/28/2021, 6:19 PM
    Sure
  • b

    Baymac

    07/28/2021, 6:21 PM
    laravel/framework             v8.51.0  ! v8.52.0  The Laravel Framework.
    and no mention of Twill
    p
    i
    • 3
    • 60
  • h

    hazelbag

    07/28/2021, 6:21 PM
    I followed as what ifox advised and it created my migrations and tables, but when I add a item to my fuse, it returns an error say ase table not found fuse_category_fuse_category does not exist so I'm note sure how to go about that
    p
    • 2
    • 57
  • c

    chrisdarling

    07/29/2021, 10:49 AM
    @User we spoke a while back about the idea of using the medias modal outside of Twill's admin (in a custom app). Any pointers how I would go about implementing this?
  • k

    Krystofer

    07/29/2021, 10:25 PM
    Hey all - just trying to install Twill and composer coming up with "Your requirements could not be resolved to an installable set of packages" - is this right? Am I okay to run this with --with-all-dependencies. Wanting to use v2.2 with latest Laravel and PHP8 support.
    i
    • 2
    • 51
  • d

    delta107

    07/29/2021, 10:37 PM
    hi so I've added a new settings blade file. But I get Exception Could not find a view for the block or repeater 'a17-block-paragraph'. (View: /var/www/html/vendor/area17/twill/views/partials/form/utils/_blocks_templates.blade.php)
  • p

    pboivin

    07/29/2021, 10:39 PM
    Hi @User, are you trying to use the block editor in the settings page?
  • d

    delta107

    07/29/2021, 10:40 PM
    not really, this is what I put in it: @extends('twill::layouts.settings') @section('contentFields') @formField('input', [ 'label' => 'Site title', 'name' => 'site_title', 'textLimit' => '80' ]) @stop
  • d

    delta107

    07/29/2021, 10:40 PM
    per the docs
  • p

    pboivin

    07/29/2021, 10:41 PM
    Ok yeah, this looks good.
1...707172...484Latest