当管理员想要删除药物时,我在控制器中写了这个代码:
$msg = 'You are not authorized to delete this drug the drug belongs to ,<ahref="'. action('UserController@viewStore',$drug->drugStore->id) . '"> {{$drug->drugStore->name}}</a>';
在第二次将数据从控制器传递到刀片式服务器时,我得到了未定义的变量。 在Laravel 5.8中,我在MyController中有两个操作/方法。我必须将数据从控制器传递到视图。第一个动作工作正常(MyController@action1 -> Blade1),但第二个动作失败(MyController@action2 -> Blade2)。MyController: public function action1