Example #1
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //Get all the tractors
     $chofers = Chofer::all();
     // Return the tractors to the index view
     return response()->json($chofers);
 }