vendredi 27 avril 2018

i have been showing error missing parameter

this error message keep showing

Missing required parameters for [Route: merchants.add.channel] [URI: merchants/{key}/denomination/{keydenom}/channel/addChannel].

here is my route

Route::get('merchants/{key}/denomination/{keydenom}/channel', 'MerchantsController@channel')->name('merchants.channel');

here is my function

public function channel($id)
{
  if (!can('merchants_list_channel')) {
      return redirect()->route('home');
  }
  $merchant = MerchantDenomination::where('id', $id)->pluck('name')->first();
  $statusDenomList = [
      '' => '-- All --',
      'ACTIVE' => 'Active',
      'DISABLE' => 'Disable',
      'OFS' => 'OFS'
  ];
    return view('merchants.channel', compact('statusDenomList', 'id', 'merchant'));
}



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire