title: Route Not found exception in laravel 5.3 tried resource route and manual route as well
body: <p>I created a resource <code>BrandController</code> and then made its routes. The problem is that some routes are working and some are not. For example, <code>create</code> route is not working. I have also tried it to declare routes manually but problem is same. I ran command like </p>
  
  <blockquote>
    <p>php artisan route:clear<br>
    php artisan cache:clear</p>
  </blockquote>
  
  <p><strong>Here are routes</strong></p>
  
  <pre><code>Route::group(['namespace' =&gt; 'AppControllers'], function () {
  
  
  /*
  |--------------------------------------------------------------------------
  | All routes of BrandController are defined here
  |--------------------------------------------------------------------------
  |
  */
  Route::get('brands', 'BrandController@index')-&gt;name('brand.index');
  Route::get('brand/create', 'BrandController@create')-&gt;name('brand.create');
  Route::get('brand/edit/{id}', 'BrandController@edit')-&gt;name('brand.edit');
  Route::delete('brand/delete/{id}', 'BrandController@destroy')-&gt;name('brand.destroy');
  Route::post('brand/store', 'BrandController@store')-&gt;name('brand.store');
  Route::post('brand/update/{id}', 'BrandController@update')-&gt;name('brand.update');
  
  // Here is resource route
  Route::resource('brands', 'BrandController');
  </code></pre>
  
  <p>});</p>
  
  <p>I have created a simple <code>a</code> tag here it is:</p>
  
  <pre><code>&lt;a href="{{route('brand.create')}}"&gt;Add New&lt;/a&gt;
  </code></pre>
  
  <p>Whenever I click on this  link it converts <code>/</code> into <code>dot</code>like this </p>
  
  <blockquote>
    <p><a href="http://localhost:8080/rms/public/brands.create" rel="nofollow noreferrer">http://localhost:8080/rms/public/brands.create</a></p>
  </blockquote>
  
  <p>It also generated </p>
  
  <blockquote>
    <p><a href="http://localhost:8080/rms/public/brand/create" rel="nofollow noreferrer">http://localhost:8080/rms/public/brand/create</a></p>
  </blockquote>
  
  <p>But same issue persists. <code>NotFoundHttpException</code> in RouteCollection </p>
  
  <p><strong>Controller Code:</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers\AppControllers;
  
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  use App\Models\Brand;
  
  class BrandController extends Controller
  {
      /**
       * Display a listing of the resource.
       *
       * @return \Illuminate\Http\Response
       */
      public function index()
      {
          //dd('jgh');
          //$brands = brand::all();
          return view('brands.index');
      }
  /**
   * Show the form for creating a new resource.
   *
   * @return \Illuminate\Http\Response
   */
  public function create()
  {
     return redirect('brands.create');
  }
  
  /**
   * Store a newly created resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @return \Illuminate\Http\Response
   */
  public function store(BrandRequest $request)
  {
      $input          = $request-&gt;all();
      $storeBrand     = new Brand();
      $storeBrand-&gt;create($input);
      //return redirect-&gt;()-&gt;back();
  }
  
  /**
   * Display the specified resource.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function show($id)
  {
  
  }
  
  /**
   * Show the form for editing the specified resource.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function edit($id)
  {
      $editBrand = Brand::findOrFail($id);
      return view('brands.edit',compact('editBrand'));
  }
  
  /**
   * Update the specified resource in storage.
   *
   * @param  \Illuminate\Http\Request  $request
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function update(BrandRequest $request, $id)
  {
      $updateBrand    = Brand::findOrFail($id);
      $input          = $request-&gt;all();
      $updateBrand-&gt;update($input);
      return redirect()-&gt;back();
  }
  
  /**
   * Remove the specified resource from storage.
   *
   * @param  int  $id
   * @return \Illuminate\Http\Response
   */
  public function destroy($id)
  {
      $deleteBrand = Brand::findOrFail($id);
      $deleteBrand-&gt;delete();
      return redirect()-&gt;back();
  }
  </code></pre>
  
  <p>}</p>