How to solve route not defined in laravel 5.3?
<p>My controller code is like this :</p>

<pre><code>public function store(CreateUserRequest $request)
{
    $input = $request-&gt;all();

    $user = $this-&gt;userRepository-&gt;create($input);

    Flash::success('User saved successfully.');

    return redirect(route('user.index.'.$input['year']));
}
</code></pre>

<p>There is exist error like this : </p>

<blockquote>
  <p>InvalidArgumentException in UrlGenerator.php line 314: Route
  [users.index.2016] not defined.</p>
</blockquote>

<p>When error, the url look like this : <code>http://localhost/mysystem/public/users</code></p>

<p>My routes\web.php is like this :</p>

<pre><code>Route::get('users/index/{year}', 'UserController@index')-&gt;name('users.index.year');

Route::get('users/create/{year}', 'UserController@create')-&gt;name('users.create.year');

Route::resource('users', 'UserController');
</code></pre>

<p>I want the url look like this : <code>http://localhost/mysystem/public/users/index/2016</code></p>

<p>Is there any people who can help me?</p>