0
我在我的路由中出现此问题,在此错误绑定中获取非对象视图的属性(show.blade.php)点击链接查看/重定向allstats.blade.php。这非常奇怪,因为我没有将我的路线返回到show.blade.php,而是返回到allstats.blade.php。我想知道如果我在路线上做错了什么。这非常棘手,我不知道是什么导致了这个错误。尝试获取非对象的属性(show.blade.php)
@Controller:
EmployeeController.php
public function postdisplaySummaryReport()
{
$employeesquery = Employee::paginate(10);
return View::make('employees.allstats')
->with('employeequerytoallstat', $employeesquery);
}
@Routes:
routes.php文件
Route::post('employees/sumarryReports','[email protected]');
Route::resource('employees', 'EmployeeController');
@的index.php(URL到allstat.blade.php):
<a href="{{ URL::to('employees/sumarryReports') }}"><span class="glyphicon glyphicon-folder-open"></span> {{trans('labels.payroll_reports.lbl_summary_report')}}</a>