如何执行此代码而不是将其显示在浏览器上?请协助

时间:2017-11-21 08:46:43

标签: php laravel-5 laravel-routing laravel-middleware laravel-facade

@if(\Route::getFacadeRoot()->current()->uri() == 'dashboard' || \Route::getFacadeRoot()->current()->uri() == 'welcome' || \Route::getFacadeRoot()->current()->uri() == 'change-password' ||
        \Route::getFacadeRoot()->current()->uri() == 'not-found' )@endif

1 个答案:

答案 0 :(得分:0)

如果是PHP,请在文件的开头添加<?php,在文件末尾添加?>

除了PHP,在线搜索。