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

    bwaltz6

    07/19/2021, 6:30 PM
    @User sail works well
  • b

    bwaltz6

    07/19/2021, 6:30 PM
    If I recall correctly the default config just works out of the box
  • p

    pboivin

    07/19/2021, 6:33 PM
    Cool! Definitely on my list of things to try. I'm just so comfy in my Homestead slippers, but I wish the provisioning could be a touch faster. Sounds like Sail is exactly that, hehe.
  • a

    antonioribeiro

    07/20/2021, 7:44 AM
    @User , @User , I use Valet on macOS, the performance is incomparable with any other VM or Docker based solution (I tried them all and I hear people asking "why these requests are so fast on your computer?"), so I can't really get back to Homestead for example, but... switching PHP versions (if you have different projects requiring different versions) and upgrading Brew packages is always a bit nightmarish, if you can deal with things breaking from time to time, it's amazing.
  • r

    Rayderxx

    07/20/2021, 9:30 AM
    Docker on mac is a nightmare 😮
  • i

    ifox

    07/20/2021, 10:14 AM
    Valet on macOS as well most of the time for it's speed, switching PHP version with brew link/unlink. I was using homestead before and still using it when I actually want to have a full environment similar to production, say if the application is using Elastic Search. Though recently I've actually leveraged raw docker to boot up ES containers that I use with apps running on Valet. I also recently set up Docker on WSL2 on my desktop PC, that's super fast.
  • i

    ifox

    07/20/2021, 10:16 AM
    also the Laravel docs have recently been updated with instructions on local development set up which are amazing
  • i

    ifox

    07/20/2021, 10:17 AM
    it would be good for Twill contributions guidelines to include dev mode setup instructions for Valet, Homestead and Sail at least
  • r

    Rayderxx

    07/20/2021, 2:26 PM
    is it possible to override controller from a capsule ?
  • p

    pboivin

    07/20/2021, 2:30 PM
    You are using a capsule and want to override just a controller inside of it?
  • r

    Rayderxx

    07/20/2021, 2:32 PM
    yep there is an exemple here : https://github.com/area17/twill/blob/f252727d6bc213642ef1d06050ecc31ccabe9132/config/capsules.php#L47
  • r

    Rayderxx

    07/20/2021, 2:32 PM
    Try to change the namespace for the specific modules but doesn't work
  • p

    pboivin

    07/20/2021, 2:37 PM
    Can you share your own
    config/capsules.php
    ?
  • l

    Luís Novais

    07/20/2021, 9:31 PM
    Hi guys, for I use preview changes I need to implent editor block ?
  • p

    pboivin

    07/20/2021, 9:40 PM
    Hey, are you talking about the "Preview changes" link on the sidebar below the revisions?
  • l

    Luís Novais

    07/20/2021, 9:50 PM
    Yes, this "Preview changes" below the revisions
  • p

    pboivin

    07/20/2021, 9:52 PM
    I believe all you need is a frontend view for your module, like:
    resources/views/site/author.blade.php
  • l

    Luís Novais

    07/20/2021, 9:53 PM
    I creating this file the button "Preview changes" will automatically show ?
  • p

    pboivin

    07/20/2021, 9:54 PM
    Ah no, for this I think you need to enable revisions
  • l

    Luís Novais

    07/20/2021, 10:02 PM
    Thanks, work after add the revisions
  • u

    user

    07/21/2021, 8:06 AM
    Hello! I was wondering if it would be possible to change the way slugs are being generated? To explain it a bit better, I was wondering if it would be possible to change the prefix to the slug itself? e.g.
    https://mydomain.com/products/awesome-product
    to
    https://mydomain.com/sales/awesome-product
    . I assume there's an easy way to make this work, and not rename everything related to products? 😄
  • i

    ifox

    07/21/2021, 8:09 AM
    @User
    protected $permalinkBase = 'sales';
  • i

    ifox

    07/21/2021, 8:09 AM
    I'm assuming you're talking about the displayed permalink below the title on the edit form?
  • i

    ifox

    07/21/2021, 8:10 AM
    if that's the case the variable above in your module controller will do the trick
  • u

    user

    07/21/2021, 8:10 AM
    Yeah, and the way it gets generated on the frontend
  • u

    user

    07/21/2021, 8:10 AM
    Also, how would I add support for other languages?
  • u

    user

    07/21/2021, 8:11 AM
    For the link itself I mean
  • i

    ifox

    07/21/2021, 8:11 AM
    well the route on the frontend is up to you, the slug in database is only stored as
    awesome-product
    . If you want to render your products under /sales you'll register a route there on your frontend and return the product by slug.
  • i

    ifox

    07/21/2021, 8:12 AM
    as far as how the link to the frontend gets generated in the admin, you can control it a few different ways, in your case permalinkBase should work.
  • u

    user

    07/21/2021, 8:13 AM
    Mhm, that did the trick, thanks
1...656667...484Latest