Upload an html file to laravel

0

I have a website and I need to attach to this site a folder called processes where, when the user types meu-site.com/processos or meu-site.com/processos/index.html , the file is loaded. Locally I can do this by inserting the processes folder in the project's public folder .Because when upo to the server gives the message I do not have permission to access the public folder on that server. Thanks from now

I tried to use the following route:

Route::get('processos',function(){
    return Redirect::to('processos/index.html');
});

But it did not work and I do not know how to call this file and where this process folder should be in the project, since it is an external folder.

    
asked by anonymous 01.09.2017 / 18:41

1 answer

0

You can create a folder called "html" within your public folder, for example, and call HTML as below:

Route::get('/processos', function () { return File::get(public_path() . '/html/index.html'); });

    
04.09.2017 / 19:56