title: Laravel API Routes Not Found
body: <p>Im new to API and Vue. 
  Im working on Laravel 5.8 api.php and controllers and views and it only return 404 Not Found.</p>
  
  <p>this is what ive tried</p>
  
  <p><strong>api.php</strong></p>
  
  <pre><code> Route::group(['middleware' =&gt; 'api'], function(){
      Route::resource('/dashboard/departments', 'DepartmentsController');
   });
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>class DepartmentsController extends Controller
  {     
     public function index()
    {
    return 'hey';
    }
  }
  </code></pre>
  
  <p>Route List</p>
  
  <pre><code> GET|HEAD  | api/dashboard/departments                   | departments.index   | App\Http\Controllers\DepartmentsController@index                       | api,auth  
  </code></pre>
  
  <p>i tried accessing it by <code>/127.0.0.1:8000/api/dashboard/departments</code> and <code>/127.0.0.1:8000/dashboard/departments</code> but both is not working.</p>