title: Laravel route [XXX.XXX] not defined
body: <p>I have a problem access the functions of my controller, only the Controller.index works and all the others not working.</p>
  
  <p><strong>Routes</strong></p>
  
  <pre><code>Route::get('Publications/datatables', 'publicationController@datatables')-&gt;name('Publications-datatables');
  Route::resource('publications', 'publicationController');
  </code></pre>
  
  <p><strong>Controller</strong> </p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Http\Requests;
  use App\Publication;
  use DataTables;
  use Illuminate\Http\Request;
  
  class publicationController extends Controller
  {
      public function index()
      {
          $publications = Publication::get();
  
          return view('Publications.index', compact('publications'));
      }
  
      public function create(Request $request)
      {
          return view('Publications.create');
      }
  
      public function store(Request $request)
      {
          $publication = Publication::create($request-&gt;all());
  
          return redirect()-&gt;route('Publications.show', $publication-&gt;id)-&gt;with('success', trans('og.alert.success'));
      }
  
      public function show(Publication $publication)
      {
          return view('Publications.show', compact('publication'));
      }
  
      public function edit(Publication $publication)
      {
          return view('Publications.edit', compact('publication'));
      }
  
      public function update(Request $request, $id)
      {
          $data = $request-&gt;all();
          $publication = Publication::find($id);
          $publication-&gt;update($data);
  
          return redirect()-&gt;route('Publications.show', $publication-&gt;id)-&gt;with('success', trans('og.alert.success'));
      }
  
      public function destroy($id, Request $request)
      {
          if ($publication = Publication::find($id)) {
              $wasDeleted = $publication-&gt;delete();
          }
  
          return redirect()-&gt;route('Publications.index')-&gt;with('success', trans('og.alert.success'));
      }
  
      public function datatables()
      {
          $Publications = Publication::all();
  
          return Datatables::of($Publications)
              -&gt;editColumn('id', '&lt;a href="{{route(\'Publications.show\', ["id" =&gt; $id])}}"&gt;{{$id}}&lt;/a&gt;')
              -&gt;addColumn('actions',
                  '&lt;a class="btn btn-primary btn-xs" href="{{route(\'Publications.edit\', $id)}}" data-placement="top" data-toggle="tooltip" title="' . trans('og.button.tooltip.edit') . '" data-title="' . trans('og.button.tooltip.edit') . '" &gt;&lt;span class="glyphicon glyphicon-pencil"&gt;&lt;/span&gt;&lt;/a&gt;
                 &lt;form style="display:inline" action="{{route(\'Publications.destroy\', $id)}}" method="POST"&gt;&lt;input type="hidden" name="_token" value="{{csrf_token()}}"&gt;&lt;input type="hidden" name="_method" value="DELETE" &gt;&lt;span data-placement="top" data-toggle="tooltip" title="' . trans('og.button.tooltip.delete') . '"&gt;&lt;button class="btn btn-danger btn-xs" type="submit"  onclick="return confirm(\'' . trans('og.alert.confirm_deletion') . '\')" &gt;&lt;span class="glyphicon glyphicon-trash"&gt;&lt;/button&gt;&lt;/span&gt;&lt;/a&gt;&lt;/form&gt;')
              -&gt;rawColumns(['id', 'actions'])
              -&gt;make(true);
      }
  }
  </code></pre>