pachristos's avatar

pachristos wrote a comment+100 XP

1mo ago

@Yong Comquas, You dont have this information out of the box, It is stored on the database. Check the code: https://github.com/laracasts/Debugging-Real-World-Production-Nightmares/blob/episode_07/database/migrations/0001_01_01_000000_create_users_table.php

pachristos's avatar

pachristos wrote a comment+100 XP

2mos ago

So, the configuration of Laravel Boost is in .gitignore, but should we commit our configuration in the .ai/ folder to Git or not?

pachristos's avatar

pachristos wrote a comment+100 XP

2mos ago

@amitgupta Actually, I'm using docker and I managed quite easily to make boost work with my editor. Just change the mcp.json to the actual command that the agent should use. In my case, I changed it from:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "php",
            "args": [
                "artisan",
                "boost:mcp"
            ]
        }
    }
}

to:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "docker",
            "args": [
                "compose",
                "-f",
                "/PATH/TO/docker-compose.yml", // <- Change this to the actual full path
                "exec",
                "-i",
                "-T",
                "APPLICATION_NAME", // <- Change this to the actual name defined in the docker-compose.yml
                "php",
                "artisan",
                "boost:mcp"
            ]
        }
    }
}

And for laravel Sail something like this may work also:

{
    "mcpServers": {
        "laravel-boost": {
            "command": "./vendor/bin/sail",
            "args": ["php", "artisan", "boost:mcp"]
        }
    }
}
pachristos's avatar

pachristos liked a comment+100 XP

2mos ago

Well said Jeremy!

I apologize for the link, but when I saw the title... couldn't help myself but share this. Hope it makes you smile! https://clawsong.com/t/WX0OGPBced/works-on-my-machine

Don't know what to tell you friend, works on my machine 😅

pachristos's avatar

pachristos wrote a comment+100 XP

2mos ago

For pest arch testers add this immediately:

    arch()->expect('env')
        ->not->toBeUsed();

:P

pachristos's avatar

pachristos wrote a comment+100 XP

3mos ago

⚡⚡⚡