dimanche 28 février 2021

Laravel Access the public folder of other Laravel Project

I am trying to build the adminpanel in laravel for a live website that is also in laravel. I want to access the public folder of another laravel project. I tried this code:

    public static function CustomerPublic(string $string)
{
    if(env('APP_ENV')=='local'){
        return __DIR__.'/custom_dir/'.$string; 
    }
}

The issue I am facing: It starts the file with root-like 127.0.0.1

I am looking for a way to access the dir of another laravel project from the current project.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire