Load an html file into the Laravel

Asked

Viewed 559 times

1

I have a website and need to attach to this site a folder called processes where when the user type meu-site.com/processos or meu-site.com/processos/index.html, be uploaded the file. Locally I can do this by inserting the processes folder into the public folder of the project.However when I upo to the server gives the message I do not have permission to access the public folder on that server.Thank you from now

I tried to use the following route:

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

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

  • Post your file and web.php of the routes folder, please will help in the answer

1 answer

0

You can create a folder called "html" inside your briefcase "public" for example, and call the files HTML as below:

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

  • It didn’t work, it loads index.html but it doesn’t load the . html that index links to

  • You could show how are the links within the 'index.html'?

  • <HTML> <HEAD> <TITLE> ARPO BPMN++ MODELER </TITLE> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-Scale=1"> <meta charset="utf-8"> </HEAD> <FRAMESET ROWS='76,'> <FRAME SRC='Frame_header.html'> <FRAMESET COLS='320,'> <FRAME SRC='Frame_html_level.html'> <FRAME SRC='Frame_welcome.html' NAME='TARGET_ARPO'> </FRAMESET> </HTML>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.