duangou1551
2018-05-03 05:14
浏览 76
已采纳

如何从laravel刀片获取变量值文件

I have a hidden field in laravel blade.

 <input type="hidden" name="agencyid" value="{{Auth::user()->agency_id}}" />

How will i get the value of this variable "agencyid" and assign to another variable? Like

$agency=$agencyid;

Iam trying to pass this value to an external PHP file.

   <?php include($_SERVER['DOCUMENT_ROOT'].'/core/agency_expiry.php?agency=$agency'); ?>

Iam new to laravel so exploring the same.

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

2条回答 默认 最新

相关推荐 更多相似问题