Replies: 2 comments 4 replies
-
Possible is for sure, assuming you are on development branch soon to be merge, the solution could be override the services which uses non compatible ones. |
Beta Was this translation helpful? Give feedback.
-
I'm also struggling with this, occurs when the PHP version in your path is too high for the codebase. I have multiple PHP versions installed on my machine, managed with Laravel Valet. One solution / workaround I'm trying to get working is detecting what version to use using Valet and then replacing the php executable in the Something like this: opts = function()
local opts = require('laravel.options.default')
local environments = opts.environments
local definitions = environments.definitions
for key, definition in pairs(definitions) do
if definition.name == 'local' then
definition.condition.executable = { get_php_path() }
end
end
return opts
end,
config = true, This results in the following: {
condition = {
executable = { "/opt/homebrew/opt/[email protected]/bin/php" }
},
name = "local"
} However that doesn't seem to have any affect on the plugin and it still doesn't use the updated PHP path. I have also tried using I've also tried setting up an extra definition into the environments table for Valet similar to the Herd definition, however I'm facing similar issues in that the config just doesn't seem to respect the changes I make. local opts = require('laravel.options.default')
local environments = opts.environments
local definitions = environments.definitions
environments.default = 'valet'
table.insert(definitions, {
name = "valet",
condition = {
executable = { "valet" },
},
commands = {
valet = { "valet" },
{
commands = { "php", "composer" },
prefix = { "valet" },
},
},
})
return opts It might be that I need to add a provider that adds Valet support instead? I might be on the complete wrong path here so any help would be greatly appreciated! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I was just wondering is it possible to set this to use with older versions of laravel?
As at one project i am using laravel 5.4 atm (there is a plan to upgrade this), and there the plugin is just not working, for artisna commadn i get bunch of error/warnings and that's it.
Maybe I missed something but a feature like where you could set the version of larvel that you want would be awesome.
Beta Was this translation helpful? Give feedback.
All reactions