Laravel routing - relative path issues -
i have directory structure follows:
docs - index.php - js/ - css/ - img/ mylaravelapp - app/ - bootstrap/ - config/ - database/ - public/ - resources/ - storage/ - tests/ - etc.
what want happen when user navigates to:
http://localhost/myprojects/mylaravelapp/public/docs
they served files "docs" folder (including javascript, css , images...)
i tried:
- putting symlink ../../docs inside "public" folder (didn't work - "sorry, page looking not found." error)
- .htaccess rules such
rewriterule ^docs/(.*) {request_filename}/../../docs/$1 [l]
i'm struggling here...
can somehow in routes.php? think having in routes.php file suit me best.
something like:
route::get('docs', 'docscontroller@index');
but how return reference folder not in public directory?
i'm new laravel, please go easy on me...
why make "docs" folder outside app?
in situation, if have directory "docs" outside "mylaravelapp", link this:
http://localhost/myprojects/docs
but think not architecture solution
Comments
Post a Comment