标签:
在?routes.php文?件?中?写?如?下?几?个?函?数?:
Route::get(‘/‘, function () { return view(‘welcome‘); }); // 获?取?app的?path Route::get(‘/app‘, function () { return app_path(); }); // 获?取?config的?path Route::get(‘/config‘, function () { return config_path(); }); // 获?取?public的?path Route::get(‘/public‘, function () { return public_path(); }); // 获?取?storage的?path Route::get(‘/storage‘, function () { return storage_path(); });
然?后?在?浏?览?器?中?输?入?以?下?网?址?, 就?可?以?获?得?想?要?的?路?径?
http://localhost:8888/public/index.php/storage // index.php是?整?个?laravel的?入?口?文?件?.
标签:
原文地址:http://www.cnblogs.com/mafeng/p/5762749.html