知识点小结
- function_exist():如果给定的函数已经被定义就返回true。
eg:if(!function_exist('route_class')){ } - getLocal()函数 : name :Illuminate\Foundation
/**- Get the current application locale.
- @return string
*/
public function getLocale()
{
return $this['config']->get('app.locale');
}
- asset() ,crsf_token(),函数在vendor\laravel\framework\scr\illuminate\Foundation\helpers.php下。
--->asset()函数:Generate an asset path for the application
--->csrf_token()函数:Get the CSRF token value.
4.currentRouteName()函数:Get the current route name
推荐文章: