mardi 29 novembre 2016

How to changed default path '/public' name in Laravel

my server using cPanel. directory structure here

  • laravel-project
  • public_ftp
  • public_html
    • public
      • index.php

I deployed on the server following this guy http://ift.tt/2bIn4Bs

everything well but my base path is "mydomain.com/public" I don't want to remove /public out from my path but to change it, I want path like this "mydomain.com/noticed"

I using laravel version 5.3

Any Idea? Thank You



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fyjnRq
via IFTTT

1 commentaire:

  1. You can override the public path using ioc container :

    App::bind('path.public', function() {
    return base_path().'/public_html';
    });

    However, avoid using shared servers. They are not secure. Better use Cloudways for hosting Laravel projects. This platform lets you launch managed server on top of infrastructures.

    RépondreSupprimer