back soft

مطالب مرتبط با «laravel update route» در back soft | نویسنده: استخدام کار

Laravel Update route on form submit

Vote count: 0 I'm using resourceful controller, Routes.php Route::resource('admin/reports', 'ReportController'); edit.blade.php {!! Form::open([ 'route' => array('admin/reports', $report->id),'class' => 'form', 'method' => 'PUT', 'id' => 'reporteditform', 'name' => 'reporteditform', 'files' => true ]) !!} {!! csrf_field() !!} ............. {!! Form::close() !!} When I submit the form, It gives me following error ErrorException in UrlGenerator.php line 306: Route [admin/reports] not defined. (View: C:xampphtdocssampleprojectresourcesviewsadminreportsedit.blade.php) Am I doing something wrong with form action url ? Any help is...

ادامه مطلب