1

Logo for Wialon Laravel App

Topic: Logo for Wialon Laravel App

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

looking for an idea !

2

Logo for Wialon Laravel App

(edited by Karl090 18/04/2021 14:21:04)

Re: Logo for Wialon Laravel App

nasnew wrote:

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!

3

Logo for Wialon Laravel App

Re: Logo for Wialon Laravel App

Karl090 wrote:
nasnew wrote:

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://www.tcswebmail.info/ https://www.dadeschools.one/ https://www.upsers.fyi/


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!


facing the same issue,