laravel base path

后端 未结 3 1522
南笙
南笙 2021-02-07 14:21

Im using URL::base(); and I get this URL:

http://www.kp.com.mx/sis_colgate/public

but what I need is this complete path:

/home/         


        
3条回答
  •  攒了一身酷
    2021-02-07 14:47

    Laravel has helpers for paths:

    base_path();    // '/var/www/mysite'
    app_path();     // '/var/www/mysite/app'
    storage_path(); // '/var/www/mysite/storage'
    

提交回复
热议问题