1
有誰知道在哪裏的源代碼位於像視圖()和str_limit()內置的Laravel 5個輔助功能?我很好奇,看看他們是如何在後臺做事的。Laravel 5助手功能
有誰知道在哪裏的源代碼位於像視圖()和str_limit()內置的Laravel 5個輔助功能?我很好奇,看看他們是如何在後臺做事的。Laravel 5助手功能
視圖功能位於下
/vendor/laravel/framework/source/illuminate/Foundation/helpers.php
行號585
內容如下:使用像PHP風暴的IDE
if (! function_exists('view'))
{
/**
* Get the evaluated view contents for the given view.
*
* @param string $view
* @param array $data
* @param array $mergeData
* @return \Illuminate\View\View
*/
function view($view = null, $data = array(), $mergeData = array())
{
$factory = app('Illuminate\Contracts\View\Factory');
if (func_num_args() === 0)
{
return $factory;
}
return $factory->make($view, $data, $mergeData);
}
}
開始,你可以找到所有這些功能與點擊一下