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

    ifox

    06/21/2021, 7:50 AM
    Just trying to understand if the subdomain is the issue
  • u

    user

    06/21/2021, 7:51 AM
    Still the same issue, I'm able to access the login route, but it keeps refreshing after a login attempt.
  • i

    ifox

    06/21/2021, 7:51 AM
    are you able to use the auth features of laravel outside of twill with the same local setup?
  • i

    ifox

    06/21/2021, 7:52 AM
    it's really strange that you don't get any feedback. Did you inspect the network?
  • u

    user

    06/21/2021, 7:52 AM
    You're on to something, I was able to register a new account, yet I'm unable to login via laravel auth either
  • u

    user

    06/21/2021, 7:53 AM
    I did, I get 2x 302 redirect login -> admin -> login
  • u

    user

    06/21/2021, 9:08 AM
    Right, got it!
  • u

    user

    06/21/2021, 9:08 AM
    Something was wrong with how Laravel generated base vendor files, after making a new clean install, and repeating all the steps above, everything worked fine.
  • i

    ifox

    06/21/2021, 9:09 AM
    great to hear
  • u

    user

    06/21/2021, 12:36 PM
    I was wondering if there was a way to manually setup and configure path/location where files would be saved once uploaded?
  • u

    user

    06/21/2021, 12:37 PM
    I assume it inherits directly from Laravel's filesystems.php?
  • u

    user

    06/21/2021, 12:37 PM
    Because the
    FileService
    class generates the path automatically based on the uuid while directly appending the
    /storage/
    to the domain name
  • i

    ifox

    06/21/2021, 12:39 PM
    make sure to run
    php artisan storage:link
    when using local uploads
  • i

    ifox

    06/21/2021, 12:40 PM
    and yes there are a couple of env variables to customize
  • u

    user

    06/21/2021, 12:44 PM
    That part is done, I do have the symlink related to storage, I also have another symlink inside the public folder related to uploads
  • u

    user

    06/21/2021, 12:44 PM
    So my path is something like
    public/uploads/files/file_hash_here/
  • u

    user

    06/21/2021, 12:45 PM
    The thing is when using the
    FileService::getUrl($file->uuid)
    method, I get a path which has the
    /storage/
    appended to the URL itself, while my files are accessible directly from the
    /files/
    folder. How do I configure the path to omit the
    /storage/
    ? I mean I could do a
    str_replace
    but I'd have to do that manually for every single view. Is there an easier way?
  • u

    user

    06/21/2021, 12:48 PM
    I mean I could probably extend the
    FileService
    class and make my own method which is based on
    getUrl
    but I do believe I'm missing something obvious related to
    env
    variables
  • i

    ifox

    06/21/2021, 12:49 PM
    I think so. Can you share the env variables you're currently using for the file library?
  • u

    user

    06/21/2021, 12:50 PM
    This is the only one that is currently being set in the
    .env
    file
    FILE_LIBRARY_ENDPOINT_TYPE=local
  • i

    ifox

    06/21/2021, 12:53 PM
    https://www.github.com/area17/twill/tree/2.x/config%2Fdisks.php
  • u

    user

    06/21/2021, 12:54 PM
    Right, but wouldn't every single migration to a different environment overwrite this vendor file? 😄
  • i

    ifox

    06/21/2021, 12:55 PM
    you're not supposed to overwrite the vendored file itself, you can overwrite everything from your own app config
  • i

    ifox

    06/21/2021, 12:56 PM
    You could define you own disk in filesystems.php and use that in your env, for example
  • u

    user

    06/21/2021, 1:04 PM
    I'm probably dumb, and overseeing something quite simple but as far as I can see
    $localRootPrefix = storage_path('app/public/');
    is defined AS IS, so swapping anything inside the
    conf/app.php
    would have no effect on that? And it would not affect the
    FileService
    class in any way? If it was defined as
    $localRootPrefix = env(MY_TEST_PATH) :? storage_path('app_public/');
    then it would have an impact?
  • u

    user

    06/21/2021, 1:04 PM
    But then again, as I've said, I might be missing something obvious
  • b

    Bem

    06/21/2021, 1:28 PM
    Hi guys, First time for me on discord. Sad we have to leave spectrum, was always easy to search through seperate discussions. I have a question about displaying multiple images. It's pretty easy to do if you use the
    $block->imagesAsArrays()
    function. But I want to loop over a couple of images, and render them each as webp and jpg. If you loop over the imagesAsArrays, there is no option anymore to change sizes or formats because that's already defined in the
    imagesAsArrays
    function For example:
    {{ $block->imagesAsArrays('cover', 'flexible', ['fm' => 'webp', 'w' => 2000]) }}
    In the
    imageObjects
    function, you get all images as objects. Is it possible to get different formats/sizes per image in the imageobjects function? Thanx, dvolkering
  • i

    ifox

    06/21/2021, 1:55 PM
    hey, sorry, I didn't mean to say you should override that line specifically, but that you can redefine 'root' in your own disk
  • i

    ifox

    06/21/2021, 1:56 PM
    Hi @User, using the image objects you can directly use the
    ImageService
  • o

    obfuscate

    06/22/2021, 10:38 AM
    Hello everyone, First timer here. I'm having a some trouble with tags. I'm trying to add multiple "Categories" to "Posts". I'm able to achieve this using browser field but I would like to use tags instead. It seems more suitable for the use case. I see this functionality in the provided demo, where I can pick "Sectors" and "Disciplines" based on items in respective modules. I have tried adding 'moduleName' to the tags field but it doesn't seem to work. Is this possible? if so, where am I going wrong? Thanks!
1...303132...484Latest