如何从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.

查看全部
duangou1551
duangou1551
2018/05/03 05:14
  • laravel
  • php
  • mysql
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

2个回复