Commit 1a01d36e authored by Nicolas Widart's avatar Nicolas Widart

Type hinting the form request

parent 33227c5e
<?php namespace Modules\Menu\Http\Controllers\Admin;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Routing\Redirector;
use Laracasts\Flash\Flash;
use Modules\Menu\Entities\Menu;
......@@ -56,7 +57,7 @@ class MenuItemController
* @param \Illuminate\Foundation\Http\FormRequest $request
* @return array
*/
private function addMenuId(Menu $menu, $request)
private function addMenuId(Menu $menu, FormRequest $request)
{
return array_merge($request->all(), ['menu_id' => $menu->id]);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment