安装 composer require code4mk/lara-head 用法元 〜内部控制器 use Khead ; class Test { public function home () { Khead :: setMeta ( 'viewport' ,[ "name" => "viewport" , "content" => "width=device-width, initial-scale=1" ]); } } 〜内刀片 {{ Khead :: getMeta ( 'viewport' ) }} // <meta nam