/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $motor = Motor::all(); return view('motor.index', compact('motor')); }