Thursday, March 16, 2017

Array to string conversion?

I am using laravel 5.4 for my project and I need to pass mulitple id.

My view blade code:-

 @if($test)
 {!! Form::model($test, ['route' => ['test.update', ['1','2','3']], 'method' => 'PUT']) !!}
@else
{!! Form::open(['route' => ['test.store', ['1','2']]]) !!}
@endif

My route file code:-

 Route::resource('project/{projectId?}/activity/{activityId}/test', 'Project\Task\TaskController');



via Pawan Dongol

Advertisement