Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Xue
    @Erchoc
    你好呀
    Zer0xFF
    @Zer0xFF
    does laravel/sqlite migration not support column dropping?
    Im running a simple migration that just drops a single column and its failing, because of constraints (not on that column but a different one) because its trying to drop the entire table $table->dropColumn(['is_approved']); <-- thats all im running
    UncertaintyP
    @UncertaintyP
    sqlite does not support column dropping
    sserip
    @sserip
    how to implement dynamic header, footer, sidebar to this structure. how to update all models same request. Thank you https://github.com/TRPB/mvc-demo-refactor?files=1
    2 replies
    Zer0xFF
    @Zer0xFF

    sqlite does not support column dropping

    :( thanks

    aditya-3008
    @aditya-3008
    Can anyone help me to execute dusk test cases in ubuntu, I am getting below error:
    Warning: TTY mode requires /dev/tty to be read/writable.
    PHPUnit 9.5.8 by Sebastian Bergmann and contributors.
    E 1 / 1 (100%)
    Time: 02:30.635, Memory: 20.00 MB
    There was 1 error:
    1) Tests\Browser\ExampleTest::testBasicExample
    Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"args":["--window-size=1920,1080","--disable-dev-shm-usage","--headless","--no-sandbox"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"args":["--window-size=1920,1080","--disable-dev-shm-usage","--headless","--no-sandbox"]}}}
    brightinnovator
    @brightinnovator

    I want to configure PHP Connection Pooling + AWS RDS Mysql Connection Pooling

    I have configured AWS RDS connection pooling setting however not sure how to set the connection pooling in PHP server

    Can someone help me with the insights which file and where to do this?

    Thanks

    Vanessa16-git
    @Vanessa16-git
    Hello @brightinnovator
    I can help you with the issue,
    can you please reach me over email : Vanessa@cisinlabs.com
    Redx36
    @Redx36

    Hello, for a new project that i would like to start and that will involves a notion of company, i would like to start with my everyday stack:

    • Laravel as backend API connected to each company database
    • common unique Angular Front

    Does someone have a suggestion about this ?

    And also, as it is the first time for me, would it stand strongly on a AWS Solution(How does it work since i always used digitalOcen)

    Thanks for the help

    madhusoodhananer
    @madhusoodhananer
    Hello, i want to open mpdf output in a new window,now i am using $mpdf->Output('vazhipad_name_star_list.pdf', 'I'); but it opens in same window please suggest a solution
    Philip Neves
    @pneves001

    Hi I'm having some trouble with Laravel. Specifically the latest laravel-mix package. A couple of days ago npm just stopped working for no reason. And now I've been trying to reeinstall webpack and laravel-mix. I've dealing with error messages. I got most of them resolved except for this one when I run 'npm run dev':

    ERROR in ./node_modules/yargs/lib/platform-shims/esm.mjs 18:21-34
    export 'fileURLToPath' (imported as 'fileURLToPath') was not found in 'url' (possible exports: Url, format, parse, resolve, resolveObject)

    No matter what packages I've installed. to try to deal with this issue nothing seems to work. I've even manually installed all the dependencies for yargs. Anyone in the chat group know how to resolve this?

    Jannik Malken
    @MannikJ
    Hi! I like the option to get the current request object from wherever I am in the code via request() helper function. Laravel holds the request in its IOC Container. We could argue if using this helper in different layers of the app a good idea, but I would like to leave this discussion aside for now.
    My question is: Is there a way to get the current instance of a custom form request class instead of the base request object? I mean it gets injected automatically into the controller, but is it really only passed directly and not available anwhere else?
    I can't even receive the instance via app(CustomFormRequest::class).
    Of course I could care for binding etc. myself, but I'm asking if there is really no built-in method to do so.
    I find form requests are one the most powerful things in laravel, but it's very inconvenient, that by using them there are actually multiple instances of requests created instead of a single one of the sub class. This behavior can lead to inconsistencies if code uses - or even worse - modifies different instances of requests.
    Sometimes I find it very inconvenient to pass the form requests around explicitly. So is there a way to do avoid this?
    UncertaintyP
    @UncertaintyP
    You could rebind the request using app()->instance('request', $request); make sure everything works because I dunno if the FormRequest got everything from the default Request (especally auth/user resolver) but should be good.
    Jannik Malken
    @MannikJ
    Yes, thank you for the snippet. I might try it out, but I'm wondering, why it's not actually default
    aditya-3008
    @aditya-3008
    Hi Everyone, I am getting below error while executing dusk test cases in GitLAb CI pipeline on Ubuntu server. Can some one please help and suggest some solution:There was 1 error:
    1) Tests\Browser\ExampleTest::testBasicExample
    Facebook\WebDriver\Exception\SessionNotCreatedException: session not created: Chrome version must be between 70 and 73
    Below is my GItLAb yml file snippet
    image.png
    seek-x2y
    @seek-x2y
    Hello everyone!
    what's usage scenarios of polymorphic relationship?
    UncertaintyP
    @UncertaintyP
    @aditya-3008 This command installs the most recent chrome driver available. You should probably install 73 then, see https://laravel.com/docs/8.x/dusk#managing-chromedriver-installations
    2 replies
    @seek-x2y The typical example is a tag/label system where you can label posts, users, comments ... Or images that you can attach to any model (like users, posts...)
    Philostoner
    @Philostoner
    Hi everyone do you think it is possible to use laravel to create a platform like fractional.art? If yes please tell me how to proceed thanks in advance
    PeacePresident
    @PeacePresident
    This chat is inactive
    Eduardo Reis Nobre
    @reisnobre
    @reisnobre
    Hello
    Anyone there that could lend me hand with an issue that I'm having about Laravel / Passport?
    Sahil Bhatia
    @sahilofficial671

    Hi everyone do you think it is possible to use laravel to create a platform like fractional.art? If yes please tell me how to proceed thanks in advance

    Seems possible!

    PeacePresident
    @PeacePresident
    @sahilofficial671 how would you do?
    UncertaintyP
    @UncertaintyP
    Here is a starting point, if you struggle with anything in particular don't hesitate to ask https://laracasts.com/series/laravel-8-from-scratch/episodes/1
    aditya-3008
    @aditya-3008
    image.png
    UncertaintyP
    @UncertaintyP
    grafik.png
    2 replies
    Philostoner
    @Philostoner
    does sanyone know how to integrate bitcoin payments and dashboard update
    on laravel?
    edvordo
    @edvordo
    easiest way would be to use a provider that handles bitcoin payments for you and just let your application handle whatever that provider gives you in their api or webhook calls
    Igor Santos Siqueira
    @IgorSiqueira
    I need to run two redis services in the container. Can anyone help me on this?
    edvordo
    @edvordo
    container as in docker, I assume .. the best way would be to have two separate redis containers defined in your docker-compose .. that said it's certainly possible to have two (or more) redis server running in one container .. see for example here https://learn.jetrails.com/article/multiple-redis-servers-with-systemd#
    Igor Santos Siqueira
    @IgorSiqueira
    thanks edvordo
    abhishek sirohi
    @abhisirohi72
    hi
    I am a newbie to this platform
    so plz anyone help me, how can i find api key?
    Pedro Martins
    @pxpm
    @abhisirohi72 if by api key you meant APP_KEY from .env file, you should create it with php artisan key:generate
    seek-x2y
    @seek-x2y

    @seek-x2y The typical example is a tag/label system where you can label posts, users, comments ... Or images that you can attach to any model (like users, posts...)

    @UncertaintyP Thanks, about tag/label system, I found a package: "rtconner/laravel-tagging"

    Andrius Solopovas
    @asolopovas
    Hi everyone, does anyone know why the observer methods do not see a factory relationships created inside the tests it only sees the model without relationships?
    1 reply
    though if I test the presence of relationships inside the test it is present
    Gareth Daine
    @garethdaine

    Hey Folks,

    In a previous version of Laravel Jetstream I was able to add a global event bus using mitt, like so:

    const el = document.getElementById('app');
    
    const app = createApp({
        render: () =>
            h(InertiaApp, {
                initialPage: JSON.parse(el.dataset.page),
                resolveComponent: (name) => {
                    const page = require(`./Pages/${name}`).default
    
                    page.eventBus = mitt()
    
                    return page
                },
            }),
    })
        .mixin({ methods: { route } })
        .use(InertiaPlugin)
        .mount(el);
    
    app.$.appContext.config.globalProperties.eventBus = mitt()

    But in the latest version, the way the Inertia app is created has changed, and I'm a bit stumped on how I can achieve the same thing. Has anyone done this before?

    Here's the latest code from Jetstream:

    const appName = window.document.getElementsByTagName('title')[0]?.innerText || 'Laravel';
    
    createInertiaApp({
        title: (title) => `${title} - ${appName}`,
        resolve: (name) => require(`./Pages/${name}.vue`),
        setup({ el, app, props, plugin }) {
            return createApp({ render: () => h(app, props)})
                .use(plugin)
                .mixin({ methods: { route } })
                .mount(el);
        },
    });
    Tomasz Ćwik
    @tocw86
    Hello evr :)
    Gareth Daine
    @garethdaine

    Hey Folks,

    This code used to work and assign the relation ID automatically when creating/updating via the relationship. Now, all it does is create the row, but with no user_id assigned.

    $event->user->exclusion()
        ->updateOrCreate([], [
            'excluded' => $exclusion['excluded'],
            'meta_data' => $exclusion['meta_data'],
            'last_checked_at' => Carbon::now(),
        ]);

    Can anyone enlighten me to why this may be?

    JohnmarkEnriquez
    @JohnmarkEnriquez
    Hi guys
    Can you help me? How to install BeyondCode/Laravel-Websockets in Lumen?
    Im stuck with errors
    In Facade Line 266: Lumen/Router()prefix
    seek-x2y
    @seek-x2y
    Hi guys! I am working on a restful api project, and i use a tagging package. There are multiple resources need to tag. Creating many controllers, FooTagController,BarTagController etc, and the routes like api/v1/foo/{foo}/tag/{tag}, api/v1/bar/{bar}/tag/{tag}, is a way to do it, but it seems like a bad style. After all, there are many other resources. In other words, resources that need to be tagged are polymorphic. Is there a better way to do it?
    seek-x2y
    @seek-x2y
    And i'm using laravel 6