too long

When I click the update button from my editoffice.blade.php this shows

"Array to string conversion (View: C:\xampp\htdocs\Eguideesources\views\editoffice.blade.php)"

editoffice.blade.php

{!! Form::open(array('route' => ['editoffice', ['id' => $id, 'office_id' => $office->id]], 'class' => 'form')) !!}

this is where the error points to.. How to fix this?

error screenshot enter image description here

THE RESULT WHEN I USE dd($request->all()); in update function

dd($request->all());

Routes

  Route::get('/', 'BuildingController@index')->name('index');

Route::get('building/{id}', 'PageController@show')->name('building');

Route::get('office/{id}', 'OfficeController@show')->name('officeMenu');

Route::get('offices', 'OfficeController@index');

Route::group(['middleware' => ['auth']], function () {

  Route::get('buildings/create', 'BuildingController@create')->name('createbform');

  Route::post('building/create/store', 'BuildingController@saveBuilding')->name('createbuilding');

  Route::get('building/{id}/edit', 'BuildingController@edit');

  Route::post('building/{id}/edit', 'BuildingController@update')->name('editbuilding');

  Route::get('building/{id}/delete', 'BuildingController@destroy');

  Route::get('building/{id}/offices/create', 'OfficeController@create')->name('createofficeform');

  Route::post('building/{id}/offices/create/store', 'OfficeController@store')->name('createoffice');

Route::get('building/{id}/offices/{office_id}/edit', 'OfficeController@edit')->name('editofficeform');

Route::post('building/{id}/offices/{office_id}/edit', 'OfficeController@update')->name('editoffice');


  Route::get('offices/{id}/delete', 'OfficeController@destroy')->name('deleteoffice');
});

Please try this as i think you have wrong syntax for form

{!! Form::open(array('route' => ['login', 'id' => $id, 'office_id' => $office->id], 'class' => 'form')) !!}

And Create the routes regarding your use