create request class laravel and use its code example Example: laravel add request $request->all() + ['index' => 'value'];