nasnew пишет:Hello,
Where shall i put the logo for a custom app developed with Laravel. it should be in the wialon app link/app/logo.png but because of laravel structure it is impossible to create this directory structure as access url is set via route and no physical link https://testmyspeed.onl/
looking for an idea !
I don't think you can do that with the basic Laravel stuff. However I can recommend you to create a helper method that does this for you
public function customAssets($path)
{
if (app()->environment('staging')) {
return 'staging/' . $path;
}
return $path;
}
Now you only need to determine the first part of the url. You can do that by getting the first part of the error of the request for example or via an environment variable.
Let me know if this helps you or if need an example!