app/Http/Controllers/EmpleadoController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $datos['empleados'] = Empleado::paginate(5);
        return view('empleado.index', $datos);
    }
public function index ( ) { $ datos [ 'empleados' ] = Empleado :: paginate ( 5 ) ; return view ( 'empleado.index' , $ datos ) ; }
Display a listing of the resource.
Display a listing of the resource .
// show the data in the Empleados index page and paginate it